Embed media: spoiler cover for NSFW-flagged embeds (CONTAINS_EXPLICIT_MEDIA) #382

Open
opened 2026-11-13 00:35:44 +00:00 by charles · 0 comments
Owner

Found in the review of PR #320 (Text chat 23, finding 3).

is_mature (CONTAINS_EXPLICIT_MEDIA embed flag) is defined in widgets/message_content/embed.rs but never used, so NSFW-flagged embed media is drawn uncovered. Spec §15 says NSFW-flagged media gets the spoiler cover. Do this with the spoiler-cover work of Text chat 22 (attachments).

Seen on branch textchat-23-ui-embeds (commit 8127468).

Refs #273

Found in the review of PR #320 (Text chat 23, finding 3). `is_mature` (`CONTAINS_EXPLICIT_MEDIA` embed flag) is defined in `widgets/message_content/embed.rs` but never used, so NSFW-flagged embed media is drawn uncovered. Spec §15 says NSFW-flagged media gets the spoiler cover. Do this with the spoiler-cover work of Text chat 22 (attachments). Seen on branch `textchat-23-ui-embeds` (commit 8127468). Refs #273
charles added this to the Text chat milestone 2026-11-13 00:35:44 +00:00
Sign in to join this conversation.
No milestone
No project
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
charles/fluxer-native#382
No description provided.