Skip to content

Commit c227651

Browse files
committed
afd-notifications: fix detection of blocked users
Broken due to Multiblocks. Reported at [[User talk:SDZeroBot#Multiblocks]]
1 parent 72ca577 commit c227651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

afd-notifications/notifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class Notifier {
363363

364364
if (!Mwn.util.isIPAddress(username)) { // IP blocks can't be looked up this way, TODO: handle this
365365
let blockinfo = await user.info('blockinfo');
366-
if (blockinfo.blockid) { // blocked
366+
if (blockinfo.blockexpiry) { // blocked
367367
if (blockinfo.blockexpiry === 'infinite') {
368368
log(`[C] Not notifying ${username} as account is indef-blocked`);
369369
return Promise.reject('blocked-indef');

0 commit comments

Comments
 (0)