summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-14 19:24:26 +0100
committerdefault <nobody@localhost>2024-02-14 19:24:26 +0100
commit43e3a0fdda5c99851974efec6fa0e6e5287a7b09 (patch)
tree2c5967c283e23ca1fdb9c04b35d60f2735dd43af
parent72c2f25c85aa927aefa65e68c7feac2f26f7537a (diff)
Added some experimental code to hide follower-only failed replies.
-rw-r--r--html.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/html.c b/html.c
index a340a96..1cd27e1 100644
--- a/html.c
+++ b/html.c
@@ -1915,6 +1915,16 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
if (user == NULL && is_msg_from_private_user(msg))
continue;
+ /* is this message a non-public reply? */
+ if (user != NULL && !is_msg_public(msg)) {
+ char *irt = xs_dict_get(msg, "inReplyTo");
+
+ if (!xs_is_null(irt) && !object_here(irt)) {
+ snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
+ continue;
+ }
+ }
+
xs_html *entry = html_entry(user, msg, local, 0, v, user ? 0 : 1);
if (entry != NULL)