You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
The "Delete media by date and size" admin API takes a server_name parameter. This makes it look like we only delete media that were uploaded to the local media repository. However, we only use it to check that it matches the local server's name:
raiseSynapseError(HTTPStatus.BAD_REQUEST, "Can only delete local media")
We then proceed to call delete_old_local_media, which, confusingly, deletes local media and local copies of remote media. So remote media is deleted even when the server_name parameter is set to the local server.
The text was updated successfully, but these errors were encountered:
The "Delete media by date and size" admin API takes a
server_name
parameter. This makes it look like we only delete media that were uploaded to the local media repository. However, we only use it to check that it matches the local server's name:synapse/synapse/rest/admin/media.py
Lines 318 to 319 in 3dd175b
We then proceed to call
delete_old_local_media
, which, confusingly, deletes local media and local copies of remote media. So remote media is deleted even when theserver_name
parameter is set to the local server.The text was updated successfully, but these errors were encountered: