mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1732 from PR0M3TH3AN/codex/verify-and-update-moderation-block-behavior
Normalize block lookups for author moderation
This commit is contained in:
1 file changed
+2
-2
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user