From 676650997734e04a902d5097cfbb91289e164fea Mon Sep 17 00:00:00 2001 From: Mike Barnes Date: Sun, 6 Aug 2023 21:45:48 +1000 Subject: [PATCH] Use case-insensitive checks when comparing account URLs in search (#3931) Fixes #3929 --- .../main/java/com/keylesspalace/tusky/BottomSheetActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/BottomSheetActivity.kt b/app/src/main/java/com/keylesspalace/tusky/BottomSheetActivity.kt index d62b5c1d1..e09bd4df8 100644 --- a/app/src/main/java/com/keylesspalace/tusky/BottomSheetActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/BottomSheetActivity.kt @@ -87,7 +87,7 @@ abstract class BottomSheetActivity : BaseActivity() { viewThread(statuses[0].id, statuses[0].url) return@subscribe } - accounts.firstOrNull { it.url == url }?.let { account -> + accounts.firstOrNull { it.url.equals(url, ignoreCase = true) }?.let { account -> // Some servers return (unrelated) accounts for url searches (#2804) // Verify that the account's url matches the query viewAccount(account.id)