From 8b274eeaa176c3080d4323f905541253cc5694f4 Mon Sep 17 00:00:00 2001 From: Evan Smith Date: Sat, 5 Nov 2022 17:07:32 +0000 Subject: [PATCH] Normalise usernames when searching --- toot/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toot/commands.py b/toot/commands.py index 36109be..720c318 100644 --- a/toot/commands.py +++ b/toot/commands.py @@ -251,7 +251,8 @@ def _find_account(app, user, account_name): account_name = account_name[1:] for account in accounts: - if account['acct'] == account_name: + # Normalise string matching because usernames are case insensitive + if account['acct'].lower() == account_name.lower(): return account raise ConsoleError("Account not found")