forked from mirrors/misskey
fix: we cannot look up user profile url with self hostname (#16488)
This commit is contained in:
parent
67a0ae460d
commit
a75f3adc36
1 changed files with 2 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue