fix: we cannot look up user profile url with self hostname (#16488)

This commit is contained in:
anatawa12 2026-06-05 13:51:38 +09:00 committed by GitHub
commit a75f3adc36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -777,6 +777,8 @@ export class ActivityPubServerService {
}
const acct = Acct.parse(request.params.acct);
// normalize acct host
if (this.utilityService.isSelfHost(acct.host)) acct.host = null;
const user = await this.usersRepository.findOneBy({
usernameLower: acct.username.toLowerCase(),