mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
Restore app user npub and blocklist helpers
This commit is contained in:
1 parent
73be11403b
commit
6fb26fede5
1 file changed
+16
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user