fix: primitives 25-33: proper local instance checks
This commit is contained in:
parent
74565f67f7
commit
5764fa55cb
6 changed files with 20 additions and 10 deletions
|
|
@ -54,9 +54,9 @@ export class RemoteUserResolveService {
|
|||
}) as MiLocalUser;
|
||||
}
|
||||
|
||||
host = this.utilityService.toPuny(host);
|
||||
host = this.utilityService.punyHost(host);
|
||||
|
||||
if (this.config.host === host) {
|
||||
if (host === this.utilityService.toPuny(this.config.host)) {
|
||||
this.logger.info(`return local user: ${usernameLower}`);
|
||||
return await this.usersRepository.findOneBy({ usernameLower, host: IsNull() }).then(u => {
|
||||
if (u == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue