From 157134a4d285e70859d9e7a5fbc53acb0b86e166 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 7 Dec 2022 01:16:35 +0100 Subject: [PATCH] yeet japan --- packages/backend/src/server/api/endpoints/ap/show.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/ap/show.ts b/packages/backend/src/server/api/endpoints/ap/show.ts index 8295edf6c..b65f5d078 100644 --- a/packages/backend/src/server/api/endpoints/ap/show.ts +++ b/packages/backend/src/server/api/endpoints/ap/show.ts @@ -91,7 +91,7 @@ export default define(meta, paramDef, async (ps, me) => { * Resolve User or Note from URI */ async function fetchAny(uri: string, me: CacheableLocalUser | null | undefined): Promise | null> { - // ブロックしてたら中断 + // Wait if blocked. const fetchedMeta = await fetchMeta(); if (fetchedMeta.blockedHosts.includes(extractDbHost(uri))) return null; @@ -103,12 +103,12 @@ async function fetchAny(uri: string, me: CacheableLocalUser | null | undefined): ])); if (local != null) return local; - // リモートから一旦オブジェクトフェッチ + // fetching Object once from remote const resolver = new Resolver(); const object = await resolver.resolve(uri) as any; - // /@user のような正規id以外で取得できるURIが指定されていた場合、ここで初めて正規URIが確定する - // これはDBに存在する可能性があるため再度DB検索 + // /@user If a URI other than the id is specified, + // the URI is determined here if (uri !== object.id) { local = await mergePack(me, ...await Promise.all([ dbResolver.getUserFromApId(object.id),