fix: use toLowerCase() to make sure usernameLower matches while compared to request with possibly capitalization
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user