Просмотр исходного кода

Don't discard notes from people we don't follow in mastoapi.

default 3 лет назад
Родитель
Сommit
9a47a7c2d1
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      mastoapi.c

+ 2 - 0
mastoapi.c

@@ -1208,10 +1208,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
                 if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0)
                 if (strcmp(type, "Note") != 0 && strcmp(type, "Question") != 0)
                     continue;
                     continue;
 
 
+#if 0
                 /* discard notes from people we don't follow with no boosts */
                 /* discard notes from people we don't follow with no boosts */
                 if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) &&
                 if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) &&
                     object_announces_len(xs_dict_get(msg, "id")) == 0)
                     object_announces_len(xs_dict_get(msg, "id")) == 0)
                     continue;
                     continue;
+#endif
 
 
                 /* discard notes from muted morons */
                 /* discard notes from muted morons */
                 if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))
                 if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))