fix(backend): APのURIがローカルかどうかをoriginで比較するように修正 (MisskeyIO#508)
This commit is contained in:
parent
cb07db5399
commit
2537f8c263
5 changed files with 8 additions and 8 deletions
|
@ -74,7 +74,7 @@ export class RemoteUserResolveService {
|
|||
if (user == null) {
|
||||
const self = await this.resolveSelf(acctLower);
|
||||
|
||||
if (self.href.startsWith(this.config.url)) {
|
||||
if (new URL(self.href).origin === this.config.url) {
|
||||
const local = this.apDbResolverService.parseUri(self.href);
|
||||
if (local.local && local.type === 'users') {
|
||||
// the LR points to local
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue