From 6aa4b6517a396fb825dd3ec6f1c7c8f24189fc9c Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 9 Oct 2025 22:31:46 -0400 Subject: [PATCH] Surface audience flags in revert modal --- components/revert-video-modal.html | 18 ++++++++- js/ui/components/RevertModal.js | 61 ++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/components/revert-video-modal.html b/components/revert-video-modal.html index cedd0daa..151d7bfd 100644 --- a/components/revert-video-modal.html +++ b/components/revert-video-modal.html @@ -62,7 +62,7 @@
Versions are grouped by their d
tag or shared videoRootId. This ensures legacy
- clients see consistent history when multiple edits were published.
+ clients see consistent history when multiple edits were published, and keeps audience flags (NSFW / for kids) aligned with the Upload modal.
Conflicting flags detected — this revision is marked both NSFW and for kids. Review before reverting.
' + : ""; + const descriptionHtml = description ? `${escape(description)}
` : 'No description provided.
'; @@ -718,6 +766,11 @@ export class RevertModal { definition("Alt text", altHtml, { span: 2 }), ].join(""); + const audienceRows = [ + definition("NSFW flag", nsfwStatusHtml), + definition("For kids flag", kidsStatusHtml), + ].join(""); + this.details.innerHTML = `