fix(UiUtils): correctly lookup local account

Fixes a regression in f590fde7a4,
where links to local accounts would be opened in the browser.
This commit is contained in:
FineFindus
2024-07-11 20:43:50 +02:00
parent 3fec39835c
commit 8b26fb3184

View File

@@ -1458,7 +1458,7 @@ public class UiUtils {
return; return;
} }
Optional<Account> account = results.accounts.stream() Optional<Account> account = results.accounts.stream()
.filter(a -> uri.getPath().contains(a.getFullyQualifiedName())).findAny(); .filter(a -> uri.getPath().contains(a.username)).findAny();
if (account.isPresent()) { if (account.isPresent()) {
args.putParcelable("profileAccount", Parcels.wrap(account.get())); args.putParcelable("profileAccount", Parcels.wrap(account.get()));
go.accept(ProfileFragment.class, args); go.accept(ProfileFragment.class, args);