From 31da3c16c398352282fc925dfba897d3953436d6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 19 Jul 2022 15:23:26 -0700 Subject: [PATCH] Properly apply star is like patch --- packages/backend/src/remote/activitypub/renderer/like.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/remote/activitypub/renderer/like.ts b/packages/backend/src/remote/activitypub/renderer/like.ts index 00fb72e8a..8d0c64224 100644 --- a/packages/backend/src/remote/activitypub/renderer/like.ts +++ b/packages/backend/src/remote/activitypub/renderer/like.ts @@ -13,8 +13,10 @@ export const renderLike = async (noteReaction: NoteReaction, note: Note) => { id: `${config.url}/likes/${noteReaction.id}`, actor: `${config.url}/users/${noteReaction.userId}`, object: note.uri ? note.uri : `${config.url}/notes/${noteReaction.noteId}`, - content: reaction, - _misskey_reaction: reaction, + ... (reaction !== '\u2b50' ? { + content: reaction, + _misskey_reaction: reaction, + } : {}), } as any; if (reaction.startsWith(':')) {