feat: Add get user following function (#202)

* feat: Add get user following function

* refactor: Refactor get_following function to use state and string public key

* feat: Update get_following function to use timeout duration

* feat: Fix connect_remote_account function to return remote_npub without conversion

* feat: Refactor get_following function to handle public key parsing errors

* Refactor get_followers function to handle public key parsing errors and use timeout duration
This commit is contained in:
XIAO YU
2024-06-05 15:24:32 +09:00
committed by GitHub
parent 7c7b082b3a
commit 4e7da4108b
2 changed files with 65 additions and 1 deletions

View File

@@ -239,7 +239,7 @@ pub async fn connect_remote_account(uri: &str, state: State<'_, Nostr>) -> Resul
// Update signer
let _ = client.set_signer(Some(signer.into())).await;
Ok(remote_npub.into())
Ok(remote_npub)
}
Err(err) => Err(err.to_string()),
}