diff options
author | default <nobody@localhost> | 2024-04-17 06:45:19 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-04-17 06:45:19 +0200 |
commit | 2e31253ba8de74e073fd104785bde78510c843c1 (patch) | |
tree | c1bad26977aa8b05a28bf8def9c262bc996d506c /html.c | |
parent | 86f1d74214ff9de162b6abd0016d183b3f934d11 (diff) |
Don't skip orphan private posts that are for us.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2055,8 +2055,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, 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; + /* is it for me? */ + xs_list *to = xs_dict_get(msg, "to"); + + if (xs_type(to) == XSTYPE_LIST && xs_list_in(to, user->actor) == -1) { + snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v)); + continue; + } } } |