admin command to delete media via MXC url

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-02-22 00:08:08 -05:00 committed by June
parent 27c29e6063
commit 4d624846ee
4 changed files with 85 additions and 41 deletions

View file

@ -20,6 +20,8 @@ pub trait Data: Send + Sync {
height: u32,
) -> Result<(Option<String>, Option<String>, Vec<u8>)>;
fn search_mxc_metadata_prefix(&self, mxc: String) -> Result<Vec<Vec<u8>>>;
fn remove_url_preview(&self, url: &str) -> Result<()>;
fn set_url_preview(