diff --git a/src/server/api/endpoints/notes/reactions.ts b/src/server/api/endpoints/notes/reactions.ts index 4874c85b67ef33f9a6c2730128851dc6c2834fce..2621e2a12fa74fc4158ed5ead98ed7a6f9e11aeb 100644 --- a/src/server/api/endpoints/notes/reactions.ts +++ b/src/server/api/endpoints/notes/reactions.ts @@ -79,7 +79,11 @@ export default define(meta, async (ps, user) => { } as DeepPartial<NoteReaction>; if (ps.type) { - query.reaction = ps.type; + // ãƒãƒ¼ã‚«ãƒ«ãƒªã‚¢ã‚¯ã‚·ãƒ§ãƒ³ã¯ãƒ›ã‚¹ãƒˆå㌠. ã¨ã•ã‚Œã¦ã„る㌠+ // DB 上ã§ã¯ãã†ã§ã¯ãªã„ã®ã§ã€å¿…è¦ã«å¿œã˜ã¦å¤‰æ› + const suffix = '@.:'; + const type = ps.type.endsWith(suffix) ? ps.type.slice(0, ps.type.length - suffix.length) + ':' : ps.type; + query.reaction = type; } const reactions = await NoteReactions.find({