From a43dee17282420acadc6c94fa377701a4f6ca427 Mon Sep 17 00:00:00 2001 From: lynxize Date: Mon, 23 Feb 2026 22:02:34 -0700 Subject: [PATCH] fix: Don't show successful media deletion as an error Fixes !admin media delete --mxc responding with an error message when the media was deleted successfully. --- src/admin/media/commands.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/admin/media/commands.rs b/src/admin/media/commands.rs index e7703b8d..d12fb44f 100644 --- a/src/admin/media/commands.rs +++ b/src/admin/media/commands.rs @@ -29,7 +29,9 @@ pub(super) async fn delete( .delete(&mxc.as_str().try_into()?) .await?; - return Err!("Deleted the MXC from our database and on our filesystem.",); + return self + .write_str("Deleted the MXC from our database and on our filesystem.") + .await; } if let Some(event_id) = event_id {