From 24b109448bc8f1d30c88bbb9d01a05eec74b3d51 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 5 Dec 2021 22:05:36 +0300 Subject: frontend: Added listing feeds to the header bar --- src/database/mod.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/database/mod.rs') diff --git a/src/database/mod.rs b/src/database/mod.rs index 339439d..a57e243 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -210,8 +210,8 @@ pub trait Storage: Clone + Send + Sync { /// The last update always wins. async fn update_post<'a>(&self, url: &'a str, update: serde_json::Value) -> Result<()>; - /// Get a list of channels available for the user represented by the `user` object to write. - async fn get_channels(&self, user: &User) -> Result>; + /// Get a list of channels available for the user represented by the URL `user` to write to. + async fn get_channels<'a>(&self, user: &'a str) -> Result>; /// Fetch a feed at `url` and return a an h-feed object containing /// `limit` posts after a post by url `after`, filtering the content @@ -386,11 +386,7 @@ mod tests { .await .unwrap(); let chans = backend - .get_channels(&crate::indieauth::User::new( - "https://fireburn.ru/", - "https://quill.p3k.io/", - "create update media", - )) + .get_channels("https://fireburn.ru/") .await .unwrap(); assert_eq!(chans.len(), 1); -- cgit 1.4.1