[backend/federation] Improve UserResolver
This commit is contained in:
parent
9307023f96
commit
0f670c1953
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ public class UserService(
|
|||
{
|
||||
return await db.Users
|
||||
.IncludeCommonProperties()
|
||||
.FirstOrDefaultAsync(p => p.Uri != null && p.Uri.ToLower() == query.ToLowerInvariant());
|
||||
.FirstOrDefaultAsync(p => (p.Uri != null && p.Uri == query) ||
|
||||
(p.UserProfile != null && p.UserProfile.Url == query));
|
||||
}
|
||||
|
||||
var tuple = AcctToTuple(query);
|
||||
|
|
Loading…
Add table
Reference in a new issue