Normalize block checks for author moderation

This commit is contained in:
thePR0M3TH3AN committed 2026-01-26 08:01:40 -05:00
1 parent 50ec850706
commit 802c70a0e3
1 file changed
+2 -2
+2 -2
View File
@@ -511,14 +511,14 @@ class Application {
isAuthorBlocked(pubkey) {
try {
const normalized = this.normalizeHexPubkey(pubkey);
if (userBlocks && typeof userBlocks.isBlocked === "function") {
if (userBlocks.isBlocked(pubkey)) {
if (normalized && userBlocks.isBlocked(normalized)) {
return true;
}
}
if (!this.isUserLoggedIn()) {
const normalized = this.normalizeHexPubkey(pubkey);
if (
normalized &&
moderationService &&