diff --git a/apps/telegram-bot/commands.py b/apps/telegram-bot/commands.py index 0739dae..b13f56b 100644 --- a/apps/telegram-bot/commands.py +++ b/apps/telegram-bot/commands.py @@ -666,10 +666,10 @@ async def cmd_show(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> None: due_str = dt_due.strftime("%d %B %Y %H:%M") lines.append(f"📅 {due_str} ({timezone_str})") - display_name = bounty.created_by_username or f"User {bounty.created_by_user_id}" - lines.append( - f'👤 {display_name}' - ) + if bounty.created_by_username: + lines.append( + f'👤 {bounty.created_by_username}' + ) dt_created = datetime.fromtimestamp(bounty.created_at, tz=tz) created_str = dt_created.strftime("%Y-%m-%d %H:%M")