Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,17 @@ impl MisskeyClient {
Ok(())
}

pub async fn invalidate_follower(
&self,
host: &str,
token: &str,
user_id: &str,
) -> Result<(), NoteDeckError> {
self.request(host, token, "following/invalidate", json!({ "userId": user_id }))
.await?;
Ok(())
}

pub async fn accept_follow_request(
&self,
host: &str,
Expand Down Expand Up @@ -1975,6 +1986,28 @@ impl MisskeyClient {
Ok(())
}

pub async fn renote_mute_user(
&self,
host: &str,
token: &str,
user_id: &str,
) -> Result<(), NoteDeckError> {
self.request(host, token, "renote-mute/create", json!({ "userId": user_id }))
.await?;
Ok(())
}

pub async fn unrenote_mute_user(
&self,
host: &str,
token: &str,
user_id: &str,
) -> Result<(), NoteDeckError> {
self.request(host, token, "renote-mute/delete", json!({ "userId": user_id }))
.await?;
Ok(())
}

pub async fn block_user(
&self,
host: &str,
Expand Down
Loading