Skip to content

Commit

Permalink
[Fix] Self vote
Browse files Browse the repository at this point in the history
  • Loading branch information
AliShadman95 committed Nov 7, 2021
1 parent fd58c2c commit ac912b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/functions/utils/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const vote = async (ctx, type): Promise<void> => {
const message_id = telegram.api.message.getMessageIDFromAction(ctx);

// If it's a self vote (Comment this part for debugging)
/* if (user_id === voter_user_id) {
if (user_id === voter_user_id) {
await telegram.api.message.send(
ctx,
telegram.api.message.getChatID(ctx),
translate(lang.language, "goodquestion_not_autovote"),
);
return;
} */
}

if (user_id && user_id !== "") {
const group_id = telegram.api.message.getChatID(ctx);
Expand Down

0 comments on commit ac912b8

Please sign in to comment.