From bcf59c58a97a543db4d93d1b31c1208bc4d54b5c Mon Sep 17 00:00:00 2001 From: Keep Creating Online <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:14:59 -0500 Subject: [PATCH] added block filter for link path to blacklisted npub content --- src/js/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index 26a833b..4891f11 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1350,7 +1350,7 @@ class bitvidApp { * Helper to open a video by event ID (like ?v=...). */ async playVideoByEventId(eventId) { - // First, check if this event is blacklisted + // First, check if this event is blacklisted by event ID if (this.blacklistedEventIds.has(eventId)) { this.showError("This content has been removed or is not allowed."); return; @@ -1369,6 +1369,13 @@ class bitvidApp { return; } + // **Check if video’s author is blacklisted** + const authorNpub = this.safeEncodeNpub(video.pubkey) || video.pubkey; + if (initialBlacklist.includes(authorNpub)) { + this.showError("This content has been removed or is not allowed."); + return; + } + // 4) Decrypt magnet if private & owned if ( video.isPrivate &&