fix: Don't show successful media deletion as an error

Fixes !admin media delete --mxc <url> responding with an error message
when the media was deleted successfully.
This commit is contained in:
lynxize 2026-02-23 22:02:34 -07:00
parent 763d9b3de8
commit a43dee1728
No known key found for this signature in database
GPG key ID: 8615849B8532CD77

View file

@ -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 {