mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
feat: Pass sender through admin commands
This commit is contained in:
1 parent
ecc6fda98b
commit
acb74faa07
5 files changed
+41
-8
No files matched your search
@@ -241,7 +241,7 @@ pub(super) async fn suspend(&self, user_id: String) -> Result {
|
||||
// TODO: Record the actual user that sent the suspension where possible
|
||||
self.services
|
||||
.users
|
||||
.suspend_account(&user_id, self.services.globals.server_user.as_ref())
|
||||
.suspend_account(&user_id, self.sender_or_service_user())
|
||||
.await;
|
||||
|
||||
self.write_str(&format!("User {user_id} has been suspended."))
|
||||
|
||||
Reference in new issue
Block a user