fix: we cannot look up user profile url with self hostname

This commit is contained in:
anatawa12 2025-08-31 00:09:07 +09:00
parent d127d82c5b
commit 8256cf8596
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 2 additions and 0 deletions

View File

@ -776,6 +776,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(),