From 39d9c613acdddb1deb7a4f1b0ad8d60e06bb5240 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 27 Feb 2022 14:10:31 +0900 Subject: [PATCH] fix --- packages/backend/src/misc/emoji-regex.ts | 2 +- .../server/api/endpoints/users/search-by-username-and-host.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/misc/emoji-regex.ts b/packages/backend/src/misc/emoji-regex.ts index 0135d8736e..ca224971c5 100644 --- a/packages/backend/src/misc/emoji-regex.ts +++ b/packages/backend/src/misc/emoji-regex.ts @@ -1,4 +1,4 @@ -import * as twemoji from 'twemoji-parser/dist/lib/regex.js'; +import twemoji from 'twemoji-parser/dist/lib/regex.js'; const twemojiRegex = twemoji.default; export const emojiRegex = new RegExp(`(${twemojiRegex.source})`); diff --git a/packages/backend/src/server/api/endpoints/users/search-by-username-and-host.ts b/packages/backend/src/server/api/endpoints/users/search-by-username-and-host.ts index 9d5a273fae..897b5de3fe 100644 --- a/packages/backend/src/server/api/endpoints/users/search-by-username-and-host.ts +++ b/packages/backend/src/server/api/endpoints/users/search-by-username-and-host.ts @@ -31,6 +31,8 @@ export const paramDef = { required: [], } as const; +// TODO: avatar,bannerをJOINしたいけどエラーになる + // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async (ps, me) => { const activeThreshold = new Date(Date.now() - (1000 * 60 * 60 * 24 * 30)); // 30日