Merge branch 'unstable' into fix/moderation-fixture-visibility-3216243228017029847

This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-05 18:24:38 -05:00
commit 9c396ad6c9
1 file changed
+11 -2
+11 -2
View File
@@ -76,7 +76,7 @@
title: "Fixture: Blurred Preview",
pubkey: "a".repeat(64),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: true,
@@ -105,7 +105,7 @@
title: "Fixture: Autoplay Blocked",
pubkey: "e".repeat(64),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: true,
@@ -616,6 +616,15 @@
card.onModerationHide = () => {
overrides = setOverride(overrides, video.id, { showAnyway: false });
refreshModeration();
try {
document.dispatchEvent(
new CustomEvent("video:moderation-hide", {
detail: { video }
})
);
} catch {
/* ignore fixture event errors */
}
return true;
};
}