mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-04-13 09:44:40 +00:00
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
Reference in a new issue