mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Don't discard notes from people we don't follow in mastoapi.
This commit is contained in:
parent
e0b870cfb5
commit
9a47a7c2d1
1 changed files with 2 additions and 0 deletions
|
@ -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")))
|
||||||
|
|
Loading…
Reference in a new issue