fix: use toLowerCase() to make sure usernameLower matches while compared to request with possibly capitalization

This commit is contained in:
Marie 2025-03-06 02:37:07 +00:00
parent c5440c20c6
commit 995ba34aa4

View file

@ -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,
});