From 6fb26fede507b17e759125438dec1f5093089e1f Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 7 Oct 2025 11:54:07 -0400 Subject: [PATCH] Restore app user npub and blocklist helpers --- js/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/app.js b/js/app.js index 9889530c..dd3b6349 100644 --- a/js/app.js +++ b/js/app.js @@ -881,6 +881,22 @@ class Application { } } + getCurrentUserNpub() { + return this.currentUserNpub; + } + + isAuthorBlocked(pubkey) { + try { + if (userBlocks && typeof userBlocks.isBlocked === "function") { + return userBlocks.isBlocked(pubkey); + } + } catch (error) { + console.warn("[Application] Failed to evaluate block status:", error); + } + + return false; + } + async init() { try { if (typeof this.loadView !== "function") {