fix: we cannot look up user profile url with self hostname
This commit is contained in:
parent
d127d82c5b
commit
8256cf8596
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue