Compare commits

...

2 Commits

Author SHA1 Message Date
anatawa12 076c22f1d6
Merge 8256cf8596 into f0fb3a56a8 2025-10-02 10:08:53 +09:00
anatawa12 8256cf8596
fix: we cannot look up user profile url with self hostname 2025-08-31 00:09:07 +09:00
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); 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({ const user = await this.usersRepository.findOneBy({
usernameLower: acct.username.toLowerCase(), usernameLower: acct.username.toLowerCase(),