fix(backend): ローカル判定でisUriLocalを使用していない箇所を修正 (#15069)

* fix(backend): ローカル判定でisUriLocalを使用していない箇所を修正

* fix(test backend): RelayServiceでUtilityServiceを使う
This commit is contained in:
鴇峰 朔華
2025-02-26 10:28:53 +09:00
committed by GitHub
parent b5799351d0
commit 39c487e1d1
3 changed files with 7 additions and 2 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 (this.utilityService.isUriLocal(self.href)) {
const local = this.apDbResolverService.parseUri(self.href);
if (local.local && local.type === 'users') {
// the LR points to local