Skip to content

Commit 358f1a6

Browse files
authored
Merge pull request #42 from kleros/fix/unban-at-federation-level
fix: unban at federation level
2 parents cf1586b + 8b0176f commit 358f1a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cron.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ const handleTelegramUpdate = async (db: any, bot: TelegramBot, settings: groupSe
677677
}
678678
if (settings.enforcement)
679679
for (const group of groups){
680-
queue.add(async () => {try{await (bot as any).restrictChatMember(moderationInfo.UserHistory.group.groupID, moderationInfo.UserHistory.user.userID, lift)}catch{}});
680+
queue.add(async () => {try{await (bot as any).restrictChatMember(group.group_id, moderationInfo.UserHistory.user.userID, lift)}catch{}});
681681
}
682682
const msg_update = settings.lang === "en" ? `*${moderationInfo.UserHistory.user.username}*'s has no other active reports. All bans should be lifted.` : `*${moderationInfo.UserHistory.user.username}* no tiene otros informes activos. Todas las prohibiciones deben ser levantadas.`
683683
if (settings.federation_id && fedNotificationChannel)

0 commit comments

Comments
 (0)