소스 검색

Don't store votes in the notification area.

default 3 년 전
부모
커밋
6c2ca0d40a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      activitypub.c

+ 4 - 0
activitypub.c

@@ -495,6 +495,10 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
 
         if (xs_list_in(rcpts, snac->actor) == -1)
             return;
+
+        /* discard votes */
+        if (!xs_is_null(xs_dict_get(msg, "name")))
+            return;
     }
 
     if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") != 0)