summaryrefslogtreecommitdiff
path: root/packages/backend/src/remote/activitypub
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-06-04 15:15:44 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-06-04 15:15:44 +0900
commit11afdf7e24549b66c000f4e1e598d82d92bc9f7e (patch)
tree36f3c34285ac84dc8b13e94a261968c28dbf620b /packages/backend/src/remote/activitypub
parentfix test (diff)
downloadsharkey-11afdf7e24549b66c000f4e1e598d82d92bc9f7e.tar.gz
sharkey-11afdf7e24549b66c000f4e1e598d82d92bc9f7e.tar.bz2
sharkey-11afdf7e24549b66c000f4e1e598d82d92bc9f7e.zip
fix bug
Diffstat (limited to 'packages/backend/src/remote/activitypub')
-rw-r--r--packages/backend/src/remote/activitypub/db-resolver.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/remote/activitypub/db-resolver.ts b/packages/backend/src/remote/activitypub/db-resolver.ts
index a9ed1a4a8d..1a02f675ca 100644
--- a/packages/backend/src/remote/activitypub/db-resolver.ts
+++ b/packages/backend/src/remote/activitypub/db-resolver.ts
@@ -5,10 +5,10 @@ import { User, IRemoteUser, CacheableRemoteUser, CacheableUser } from '@/models/
import { UserPublickey } from '@/models/entities/user-publickey.js';
import { MessagingMessage } from '@/models/entities/messaging-message.js';
import { Notes, Users, UserPublickeys, MessagingMessages } from '@/models/index.js';
-import { IObject, getApId } from './type.js';
-import { resolvePerson } from './models/person.js';
import { Cache } from '@/misc/cache.js';
import { uriPersonCache, userByIdCache } from '@/services/user-cache.js';
+import { IObject, getApId } from './type.js';
+import { resolvePerson } from './models/person.js';
const publicKeyCache = new Cache<UserPublickey | null>(Infinity);
const publicKeyByUserIdCache = new Cache<UserPublickey | null>(Infinity);
@@ -29,7 +29,7 @@ export type UriParseResult = {
uri: string;
};
-export function parseUri(url: string) : UriParseResult {
+export function parseUri(value: string | IObject): UriParseResult {
const uri = getApId(value);
// the host part of a URL is case insensitive, so use the 'i' flag.