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
When a user delete-and-redrafts a post, the original status is deleted, but the media attachments are left behind to be reattached to the new status. Since the attachments don't get an updated timestamp when this happens, it stands to reason that the temporarily orphaned attachments could get cleaned up by the server while the user is redrafting the status. From what I could gather from reading the source, this is only a concern if the user is redrafting a toot from 10+ days ago (as the attachments will have a createdAt timestamp of 10+ days ago and be candidates for the cleanup script to delete).
I propose that this could be fixed by either of the following (from my most- to least-desired):
making delete-and-redrafts an API-level feature
updating the attachments' createdAt timestamps when deleting their attached status to extend the user's window for safely redrafting the status
returning an error when posting a status with media ID's that aren't valid, instead of the current behavior of silently ignoring those attachments
disallow reusing of media IDs to make it explicit to API consumers that a delete-and-redraft feature needs to download and reupload the media attachments for the new status
The text was updated successfully, but these errors were encountered:
When a user delete-and-redrafts a post, the original status is deleted, but the media attachments are left behind to be reattached to the new status. Since the attachments don't get an updated timestamp when this happens, it stands to reason that the temporarily orphaned attachments could get cleaned up by the server while the user is redrafting the status. From what I could gather from reading the source, this is only a concern if the user is redrafting a toot from 10+ days ago (as the attachments will have a createdAt timestamp of 10+ days ago and be candidates for the cleanup script to delete).
I propose that this could be fixed by either of the following (from my most- to least-desired):
The text was updated successfully, but these errors were encountered: