summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-04-17 06:45:19 +0200
committerGravatar default2024-04-17 06:45:19 +0200
commit2e31253ba8de74e073fd104785bde78510c843c1 (patch)
treec1bad26977aa8b05a28bf8def9c262bc996d506c /html.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-2e31253ba8de74e073fd104785bde78510c843c1.tar.gz
snac2-2e31253ba8de74e073fd104785bde78510c843c1.tar.xz
snac2-2e31253ba8de74e073fd104785bde78510c843c1.zip
Don't skip orphan private posts that are for us.
Diffstat (limited to 'html.c')
-rw-r--r--html.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/html.c b/html.c
index f50fb7d..59ada61 100644
--- a/html.c
+++ b/html.c
@@ -2055,8 +2055,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
2055 char *irt = xs_dict_get(msg, "inReplyTo"); 2055 char *irt = xs_dict_get(msg, "inReplyTo");
2056 2056
2057 if (!xs_is_null(irt) && !object_here(irt)) { 2057 if (!xs_is_null(irt) && !object_here(irt)) {
2058 snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v)); 2058 /* is it for me? */
2059 continue; 2059 xs_list *to = xs_dict_get(msg, "to");
2060
2061 if (xs_type(to) == XSTYPE_LIST && xs_list_in(to, user->actor) == -1) {
2062 snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
2063 continue;
2064 }
2060 } 2065 }
2061 } 2066 }
2062 2067