Skip to content

Stop bridging media from redacted events - #1865

Draft
nbuechner wants to merge 1 commit into
matrix-org:developfrom
nbuechner:fix/media-redaction
Draft

Stop bridging media from redacted events#1865
nbuechner wants to merge 1 commit into
matrix-org:developfrom
nbuechner:fix/media-redaction

Conversation

@nbuechner

Copy link
Copy Markdown

Summary

  • Pass the source room and event ID through to MediaProxy.generateMediaUrl() so the proxy can refuse to serve media once the event sharing it has been redacted (e.g. NSFW content removed on Matrix).

Blocked on

This depends on the corresponding fix in matrix-appservice-bridge: matrix-org/matrix-appservice-bridge#527. generateMediaUrl()'s new { roomId, eventId } parameter only exists on that unmerged branch, so CI here will fail (matrix-appservice-bridge type mismatch) until #527 merges and a new version is released. Marking as draft until then, at which point I'll bump the matrix-appservice-bridge dependency version and mark ready for review.

Test plan

Fixes #1849

Pass the source room and event ID through to MediaProxy.generateMediaUrl()
so the proxy can refuse to serve media once the event sharing it has been
redacted (e.g. NSFW content removed on Matrix). Requires the corresponding
fix in matrix-appservice-bridge.

Fixes matrix-org#1849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

redacted media via MediaProxy

1 participant