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") {