diff options
| author | Christine Dodrill <me@christine.website> | 2020-11-18 12:18:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 12:18:24 -0500 |
| commit | f643496416c75ea468ffd866ccfee6436a3912f0 (patch) | |
| tree | 902a3b987474906360544c55bd28b96f9e2bb44a /src/app | |
| parent | 089b14788dbc0fe9a6b3a9263d5926a27c96f237 (diff) | |
| download | xesite-f643496416c75ea468ffd866ccfee6436a3912f0.tar.xz xesite-f643496416c75ea468ffd866ccfee6436a3912f0.zip | |
various updates (#263)
* various updates
* fix glory shot
* fix mi url for updating my blog
* fix CI
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/mod.rs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 035db07..c18e121 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -2,24 +2,28 @@ use crate::{post::Post, signalboost::Person}; use color_eyre::eyre::Result; use serde::Deserialize; use std::{fs, path::PathBuf}; -use tracing::{instrument, error}; +use tracing::{error, instrument}; pub mod markdown; #[derive(Clone, Deserialize)] pub struct Config { #[serde(rename = "clackSet")] - clack_set: Vec<String>, - signalboost: Vec<Person>, - port: u16, + pub(crate) clack_set: Vec<String>, + pub(crate) signalboost: Vec<Person>, + pub(crate) port: u16, #[serde(rename = "resumeFname")] - resume_fname: PathBuf, + pub(crate) resume_fname: PathBuf, + #[serde(rename = "webMentionEndpoint")] + pub(crate) webmention_url: String, } #[instrument] async fn patrons() -> Result<Option<patreon::Users>> { use patreon::*; - let creds: Credentials = envy::prefixed("PATREON_").from_env().unwrap_or(Credentials::default()); + let creds: Credentials = envy::prefixed("PATREON_") + .from_env() + .unwrap_or(Credentials::default()); let cli = Client::new(creds); match cli.campaign().await { |
