commit 43e3a0f
default
·
2024-02-14 18:24:26 +0000 UTC
parent 72c2f25
Added some experimental code to hide follower-only failed replies.
1 files changed,
+10,
-0
M
html.c
M
html.c
+10,
-0
1@@ -1915,6 +1915,16 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
2 if (user == NULL && is_msg_from_private_user(msg))
3 continue;
4
5+ /* is this message a non-public reply? */
6+ if (user != NULL && !is_msg_public(msg)) {
7+ char *irt = xs_dict_get(msg, "inReplyTo");
8+
9+ if (!xs_is_null(irt) && !object_here(irt)) {
10+ snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
11+ continue;
12+ }
13+ }
14+
15 xs_html *entry = html_entry(user, msg, local, 0, v, user ? 0 : 1);
16
17 if (entry != NULL)