fix: use toLowerCase() to make sure usernameLower matches while compared to request with possibly capitalization
This commit is contained in:
parent
c5440c20c6
commit
995ba34aa4
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,7 @@ export class ActivityPubServerService {
|
|||
const acct = Acct.parse(request.params.acct);
|
||||
|
||||
const user = await this.usersRepository.findOneBy({
|
||||
usernameLower: acct.username,
|
||||
usernameLower: acct.username.toLowerCase(),
|
||||
host: acct.host ?? IsNull(),
|
||||
isSuspended: false,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue