diff options
Diffstat (limited to 'src/micropub.rs')
-rw-r--r-- | src/micropub.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/micropub.rs b/src/micropub.rs index 04fa893..b2f1e73 100644 --- a/src/micropub.rs +++ b/src/micropub.rs @@ -3,6 +3,7 @@ pub use kittybox_util::micropub::{Error as MicropubError, Config, QueryType}; #[derive(Debug)] pub struct Client { + pub me: String, micropub: String, pub access_token: String, @@ -22,11 +23,11 @@ pub enum Error { } impl Client { - pub fn new(http: soup::Session, uri: glib::Uri, token: String) -> Self { + pub fn new(http: soup::Session, uri: glib::Uri, token: String, me: String) -> Self { Self { micropub: uri.to_string(), access_token: token, - + me, http, } } |