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
parent 67a0ae460d
commit a75f3adc36
@@ -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(),