fix(backend): APのURIがローカルかどうかをoriginで比較するように修正 (MisskeyIO#508)

This commit is contained in:
kabo2468 2024-03-07 04:45:05 +09:00 committed by GitHub
parent cb07db5399
commit 2537f8c263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View file

@ -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