Function wicrs_server::api::user_muted[][src]

pub async fn user_muted(
    actor_id: &str,
    hub_id: ID,
    user_id: &str
) -> Result<bool>
Expand description

Checks if a user is muted in a hub. Returns true if they are and false if they aren’t.

Arguments

  • actor_id - ID of the user who is checking.
  • hub_id - The hub in which to check the mute status.
  • user_id - The user whose mute status is to be checked.

Errors

This function may return an error for any of the following reasons:

  • The user who is checking is not in the hub.
  • The hub could not be loaded for any of the reasons outlined by Hub::load.