소스 검색

Fixed a bug in Undo + EmojiReact.

grunfink 2 주 전
부모
커밋
eea4e1fbce
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      activitypub.c

+ 2 - 3
activitypub.c

@@ -2836,10 +2836,9 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
         }
         }
         /* *key emojis are like w/ Emoji tag */
         /* *key emojis are like w/ Emoji tag */
         else
         else
-        if ((isEmoji || strcmp(utype, "EmojiReact") == 0) &&
-                (content && strcmp(content, "♥") != 0)) {
+        if (isEmoji || strcmp(utype, "EmojiReact") == 0) {
             const xs_val *mid = xs_dict_get(object, "id");
             const xs_val *mid = xs_dict_get(object, "id");
-            int status = object_rm_emoji_react((char *)id, mid);
+            int status = object_rm_emoji_react(id, mid);
             /* ensure *key notifications type */
             /* ensure *key notifications type */
             utype = "EmojiReact";
             utype = "EmojiReact";