commit 2e31253

default  ·  2024-04-17 04:45:19 +0000 UTC
parent 86f1d74
Don't skip orphan private posts that are for us.
1 files changed,  +7, -2
M html.c
M html.c
+7, -2
 1@@ -2055,8 +2055,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
 2             char *irt = xs_dict_get(msg, "inReplyTo");
 3 
 4             if (!xs_is_null(irt) && !object_here(irt)) {
 5-                snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
 6-                continue;
 7+                /* is it for me? */
 8+                xs_list *to = xs_dict_get(msg, "to");
 9+
10+                if (xs_type(to) == XSTYPE_LIST && xs_list_in(to, user->actor) == -1) {
11+                    snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
12+                    continue;
13+                }
14             }
15         }
16