Merge pull request #1732 from PR0M3TH3AN/codex/verify-and-update-moderation-block-behavior

Normalize block lookups for author moderation
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-26 08:02:17 -05:00
commit af31262873
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 &&