From d15474ad610e9f662f0d5f431b020e5117325401 Mon Sep 17 00:00:00 2001 From: notplants Date: Mon, 17 Jan 2022 10:55:32 -0500 Subject: [PATCH 1/2] Remove friends.follow --- src/sbot.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/sbot.rs b/src/sbot.rs index 52c2797..f902487 100644 --- a/src/sbot.rs +++ b/src/sbot.rs @@ -210,29 +210,6 @@ impl Sbot { self.publish(msg).await } - /// Call the `friends follow` RPC method and return a message reference. - /// if state is true, then sets the following status to true - /// if state is false, then sets the following status to false (unfollow) - /// TODO: currently this method is not working (seems to be missing from go-sbot) - /// as a workaround, we can use set_relationship instead just fine - pub async fn friends_follow( - &mut self, - ssb_id: &str, - state: bool, - ) -> Result { - let mut sbot_connection = self.get_sbot_connection().await?; - let req_id = sbot_connection - .client - .friends_follow_req_send(ssb_id, state) - .await?; - utils::get_async( - &mut sbot_connection.rpc_reader, - req_id, - utils::string_res_parse, - ) - .await - } - /// Call the `friends isfollowing` RPC method and return a message reference. /// returns true if src_id is following dest_id and false otherwise pub async fn friends_is_following( From 79630703c2fee672dc1319386069e96d2bc02363 Mon Sep 17 00:00:00 2001 From: notplants Date: Mon, 17 Jan 2022 10:57:13 -0500 Subject: [PATCH 2/2] Remove pub from get_followers --- src/sbot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbot.rs b/src/sbot.rs index f902487..8d26488 100644 --- a/src/sbot.rs +++ b/src/sbot.rs @@ -266,7 +266,7 @@ impl Sbot { /// TODO: currently this method is not working /// go-sbot does not seem to listen to the reverse=True parameter /// and just returns follows - pub async fn get_followers(&mut self) -> Result, GolgiError> { + async fn get_followers(&mut self) -> Result, GolgiError> { self.friends_hops(FriendsHopsOpts { max: 1, start: None,