diff --git a/package.json b/package.json index 391723bfc..323147db8 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "@bull-board/api": "^4.6.4", "@bull-board/ui": "^4.6.4", "@tensorflow/tfjs": "^3.21.0", + "calckey-js": "^0.0.16", "eslint": "^8.28.0", "execa": "5.1.1", "gulp": "4.0.2", diff --git a/packages/backend/package.json b/packages/backend/package.json index df1bebd85..8045d53c1 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -42,7 +42,7 @@ "blurhash": "1.1.5", "bull": "4.10.1", "cacheable-lookup": "7.0.0", - "calckey-js": "^0.0.15", + "calckey-js": "^0.0.16", "cbor": "8.1.0", "chalk": "5.1.2", "chalk-template": "0.4.0", diff --git a/packages/backend/src/server/api/endpoints/i/known-as.ts b/packages/backend/src/server/api/endpoints/i/known-as.ts index d33906a65..2a27e36fe 100644 --- a/packages/backend/src/server/api/endpoints/i/known-as.ts +++ b/packages/backend/src/server/api/endpoints/i/known-as.ts @@ -1,10 +1,9 @@ -import { In } from 'typeorm'; -import type { User } from '@/models/entities/user.js'; -import { Users, DriveFiles, Notes, Channels, Blockings } from '@/models/index.js'; +import type { User, UserDetailedNotMeOnly } from '@/models/entities/user.js'; +import { Users } from '@/models/index.js'; import { resolveUser } from '@/remote/resolve-user.js'; import acceptAllFollowRequests from '@/services/following/requests/accept-all.js'; import { publishToFollowers } from '@/services/i/update.js'; -import { publishMainStream, publishUserEvent } from '@/services/stream.js'; +import { publishMainStream } from '@/services/stream.js'; import { DAY } from '@/const.js'; import { apiLogger } from '../../logger.js'; import define from '../../define.js'; @@ -54,7 +53,7 @@ export default define(meta, paramDef, async (ps, user) => { const userAddress: string[] = unfiltered.split('@'); - const knownAs: User = await resolveUser(userAddress[0], userAddress[1]).catch(e => { + const knownAs: UserDetailedNotMeOnly = await resolveUser(userAddress[0], userAddress[1]).catch(e => { apiLogger.warn(`failed to resolve remote user: ${e}`); throw new ApiError(meta.errors.noSuchUser); }); diff --git a/packages/client/package.json b/packages/client/package.json index c71ac27ef..c77507bf3 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -19,7 +19,7 @@ "blurhash": "1.1.5", "broadcast-channel": "4.18.1", "browser-image-resizer": "https://github.com/misskey-dev/browser-image-resizer.git#commit=0380d12c8e736788ea7f4e6e985175521ea7b23c", - "calckey-js": "^0.0.15", + "calckey-js": "^0.0.16", "chart.js": "4.0.1", "chartjs-adapter-date-fns": "2.0.1", "chartjs-plugin-gradient": "0.5.1",