瀏覽代碼

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

default 3 年之前
父節點
當前提交
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)
                     continue;
 
+#if 0
                 /* discard notes from people we don't follow with no boosts */
                 if (!following_check(&snac1, xs_dict_get(msg, "attributedTo")) &&
                     object_announces_len(xs_dict_get(msg, "id")) == 0)
                     continue;
+#endif
 
                 /* discard notes from muted morons */
                 if (is_muted(&snac1, xs_dict_get(msg, "attributedTo")))