Restore app user npub and blocklist helpers

This commit is contained in:
thePR0M3TH3AN committed 2025-10-07 11:54:07 -04:00
1 parent 73be11403b
commit 6fb26fede5
1 file changed
+16
+16
View File
@@ -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") {