1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-10-06 19:00:48 +00:00

feat(902): Upload files for admin commands that are too long

This commit is contained in:
nexy7574 2025-07-09 15:02:14 +01:00
parent e61a593932
commit 7b60f5368d
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F
2 changed files with 108 additions and 9 deletions

View file

@ -192,8 +192,9 @@ pub async fn revoke_admin(&self, user_id: &UserId) -> Result {
| Err(e) => return Err!(error!(?e, "Failure occurred while attempting revoke.")),
| Ok(event) if !matches!(event.membership, Invite | Knock | Join) =>
return Err!("Cannot revoke {user_id} in membership state {:?}.", event.membership),
| Ok(event) if !matches!(event.membership, Invite | Knock | Join) => {
return Err!("Cannot revoke {user_id} in membership state {:?}.", event.membership);
},
| Ok(event) => {
assert!(