add admin command to delete all local media by a local user

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry authored and Jason Volk committed 2024-08-29 19:19:20 +00:00
1 parent e790785db8
commit 2b7e0dcb80
2 files changed
+26 -1

No files matched your search

+10
View File
@@ -32,8 +32,18 @@ pub(super) enum MediaCommand {
/// - The duration (at or after), e.g. "5m" to delete all media in the
/// past 5 minutes
duration: String,
/// Continues deleting remote media if an undeletable object is found
#[arg(short, long)]
force: bool,
},
/// - Deletes all the local media from a local user on our server
DeleteAllFromUser {
username: String,
/// Continues deleting media if an undeletable object is found
#[arg(short, long)]
force: bool,
},
}