FR: Support MSC4586: Flag to explicitly persist URL preview assets #2605

Open
opened 2026-11-25 16:09:26 +00:00 by nex · 1 comment
Owner

What new feature do you want to see? What problem does it solve?

MSC4586 attempts to resolve a problem where URL preview assets were supposed to be ephemeral, however this was never communicated into the specification, causing diverging behaviours and expectations in clients and servers alike.

4586 will explicitly make URL preview data ephemeral UNLESS the client asks for it to be persistent. This should make cleanup easier, which is currently a TODO in the media service.

Further reading

Additional context

Gomuks has been duplicating media on my server for months >:(

### What new feature do you want to see? What problem does it solve? [MSC4586](https://github.com/matrix-org/matrix-spec-proposals/pull/4586) attempts to resolve a problem where URL preview assets were supposed to be ephemeral, however this was never communicated into the specification, causing diverging behaviours and expectations in clients and servers alike. 4586 will explicitly make URL preview data ephemeral UNLESS the client asks for it to be persistent. This should make cleanup easier, which is currently a TODO in the media service. ### Further reading - https://github.com/matrix-org/matrix-spec-proposals/pull/4586 - https://github.com/element-hq/synapse/issues/18669 - https://github.com/element-hq/element-web/issues/30238 - https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/4095-bundled-url-previews.md#sending-preview-data - [the original spec](https://github.com/matrix-org/matrix-spec/commit/0f5a4efce6affc1dc002097d16028aa8598e0582), written [*after* Synapse implemented it](https://github.com/element-hq/synapse/commit/9ccb4226ba0824a1468c4e8f0abe91aca3381862) (meaning the Synapse interpretation takes priority) ### Additional context Gomuks has been duplicating media on my server for months >:(
Author
Owner

The "compliance" flag is dubious since technically the spec never said to make assets ephemeral, but it was implied by the Synapse implementation doing it before the spec was written. I'll keep it for now.

The "compliance" flag is dubious since technically the spec never said to make assets ephemeral, but it was implied by the Synapse implementation doing it before the spec was written. I'll keep it for now.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2605
No description provided.