mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-11 18:33:01 +02:00
feat: Pass sender through admin commands
This commit is contained in:
parent
ecc6fda98b
commit
acb74faa07
5 changed files with 41 additions and 8 deletions
|
@ -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."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue