Skip to content

Commit

Permalink
Merge pull request #42 from kleros/fix/unban-at-federation-level
Browse files Browse the repository at this point in the history
fix: unban at federation level
  • Loading branch information
kemuru authored Feb 12, 2024
2 parents cf1586b + 8b0176f commit 358f1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ const handleTelegramUpdate = async (db: any, bot: TelegramBot, settings: groupSe
}
if (settings.enforcement)
for (const group of groups){
queue.add(async () => {try{await (bot as any).restrictChatMember(moderationInfo.UserHistory.group.groupID, moderationInfo.UserHistory.user.userID, lift)}catch{}});
queue.add(async () => {try{await (bot as any).restrictChatMember(group.group_id, moderationInfo.UserHistory.user.userID, lift)}catch{}});
}
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.`
if (settings.federation_id && fedNotificationChannel)
Expand Down

0 comments on commit 358f1a6

Please sign in to comment.