Skip to content

Commit

Permalink
fix: closes #129, display the right message when the post is rejected…
Browse files Browse the repository at this point in the history
… via shortcut
  • Loading branch information
Helias committed Nov 18, 2023
1 parent ffc34fa commit b0d3652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utils/keyboard_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_post_outcome_kb(bot: Bot, votes: list[tuple[int, bool]], reason: Optiona
InlineKeyboardButton(f"🔴 {bot.get_chat(reject).username}" if reject else '', callback_data="none")
])

is_approved = len(approved_by) > len(rejected_by)
is_approved = len(approved_by) > len(rejected_by) and reason is None
outcome_text = APPROVED_KB if is_approved else REJECTED_KB

if reason is not None and not is_approved:
Expand Down

0 comments on commit b0d3652

Please sign in to comment.