mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: alter wording
This commit is contained in:
committed by
31a05b9c-5ef6-4a9b-90f9-80241c8cf499
parent
d600aed8db
commit
b296720540
@@ -1 +1 @@
|
||||
Add `!admin users force-reject-invites` to clean invite spam
|
||||
Add `!admin users reject-all-invites` to clean invite spam
|
||||
|
||||
@@ -471,7 +471,7 @@ pub(super) async fn list_invited_rooms(&self, user_id: String) -> Result {
|
||||
}
|
||||
|
||||
#[admin_command]
|
||||
pub(super) async fn force_reject_invites(&self, user_id: String) -> Result {
|
||||
pub(super) async fn reject_all_invites(&self, user_id: String) -> Result {
|
||||
let user_id = parse_local_user_id(self.services, &user_id)?;
|
||||
|
||||
assert!(
|
||||
@@ -487,7 +487,7 @@ pub(super) async fn force_reject_invites(&self, user_id: String) -> Result {
|
||||
.filter_map(async |(room_id, _)| {
|
||||
match leave_room(self.services, &user_id, &room_id, None).await {
|
||||
| Err(ref e) => {
|
||||
warn!(%user_id, "Failed to leave {room_id} remotely: {e}");
|
||||
warn!(%user_id, "Failed to leave {room_id}: {e}");
|
||||
Some(())
|
||||
},
|
||||
| Ok(()) => None,
|
||||
|
||||
@@ -166,14 +166,14 @@ pub enum UserCommand {
|
||||
user_id: String,
|
||||
},
|
||||
|
||||
/// Lists all the rooms (local and remote) that the specified user is
|
||||
/// joined in
|
||||
ListJoinedRooms {
|
||||
/// Manually make a user reject all current invites
|
||||
RejectAllInvites {
|
||||
user_id: String,
|
||||
},
|
||||
|
||||
/// Manually make a user reject all current invites
|
||||
ForceRejectInvites {
|
||||
/// Lists all the rooms (local and remote) that the specified user is
|
||||
/// joined in
|
||||
ListJoinedRooms {
|
||||
user_id: String,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user