mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-09-27 21:00:53 -04:00
Admin API to delete media for a specific user (#10558)
This commit is contained in:
parent
3ebb6694f0
commit
915b37e5ef
7 changed files with 348 additions and 129 deletions
|
@ -259,7 +259,9 @@ class DeleteMediaByID(RestServlet):
|
|||
|
||||
logging.info("Deleting local media by ID: %s", media_id)
|
||||
|
||||
deleted_media, total = await self.media_repository.delete_local_media(media_id)
|
||||
deleted_media, total = await self.media_repository.delete_local_media_ids(
|
||||
[media_id]
|
||||
)
|
||||
return 200, {"deleted_media": deleted_media, "total": total}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue