Summary
The Media Expiry setting only affects media at the time it is uploaded. If an instance admin changes this setting, previously uploaded media is not affected and only newly uploaded media uses the updated expiry setting. I would expect changes to this setting to also apply retroactively, such that existing media would also observe the updated expiry setting for such an event when an instance’s data storage capacity conditions change. For example, if an instance owner is running out of space, they would probably want pre-existing media to have an expiry date applied to make room; inversely if an instance owner upgraded their storage capacity, they may no longer see the need to have expiry applied for pre-existing media.Steps to reproduce
If media expiry is already enabled:- Upload an attachment in a text chat/channel.
- Go to Configuration > Instance Config > Media & retention and uncheck "Enable attachment expiry" in the admin panel.
- Fully restart docker compose stack.
- Go back to the attachment that was uploaded in step 1; it will still have an expiry date applied.
- Upload an attachment in a text chat/channel
- Go to Configuration > Instance Config > Media & retention and check "Enable attachment expiry" in the admin panel.
- Fully restart docker compose stack.
- Go back to the attachment that was uploaded in step 1; it will have no expiry date applied.
1 comment
Comment by @SudhanshuMatrix
Deleted comment