mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 18:22:42 +00:00
chore: alter wording
This commit is contained in:
1 parent
d600aed8db
commit
b296720540
3 files changed
+8
-8
No files matched your search
@@ -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