diff options
| author | 鴇峰 朔華 <160555157+sakuhanight@users.noreply.github.com> | 2025-02-26 10:28:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-26 01:28:53 +0000 |
| commit | 39c487e1d18985e605ab9adae1b49cf63db4e753 (patch) | |
| tree | 42580aca67d0c9aa763bfb09d0d0fa3bca9cbc1f /packages/backend/src/core/RemoteUserResolveService.ts | |
| parent | fix(backend): clips/updateのdescriptionで空文字を許容するように ... (diff) | |
| download | sharkey-39c487e1d18985e605ab9adae1b49cf63db4e753.tar.gz sharkey-39c487e1d18985e605ab9adae1b49cf63db4e753.tar.bz2 sharkey-39c487e1d18985e605ab9adae1b49cf63db4e753.zip | |
fix(backend): ローカル判定でisUriLocalを使用していない箇所を修正 (#15069)
* fix(backend): ローカル判定でisUriLocalを使用していない箇所を修正
* fix(test backend): RelayServiceでUtilityServiceを使う
Diffstat (limited to 'packages/backend/src/core/RemoteUserResolveService.ts')
| -rw-r--r-- | packages/backend/src/core/RemoteUserResolveService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/RemoteUserResolveService.ts b/packages/backend/src/core/RemoteUserResolveService.ts index 098b5e1706..a2f1b73cdb 100644 --- a/packages/backend/src/core/RemoteUserResolveService.ts +++ b/packages/backend/src/core/RemoteUserResolveService.ts @@ -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 |