mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Don't skip orphan private posts that are for us.
This commit is contained in:
parent
86f1d74214
commit
2e31253ba8
1 changed files with 7 additions and 2 deletions
5
html.c
5
html.c
|
@ -2055,10 +2055,15 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
|
||||||
char *irt = xs_dict_get(msg, "inReplyTo");
|
char *irt = xs_dict_get(msg, "inReplyTo");
|
||||||
|
|
||||||
if (!xs_is_null(irt) && !object_here(irt)) {
|
if (!xs_is_null(irt) && !object_here(irt)) {
|
||||||
|
/* 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));
|
snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
xs_html *entry = html_entry(user, msg, read_only, 0, v, user ? 0 : 1);
|
xs_html *entry = html_entry(user, msg, read_only, 0, v, user ? 0 : 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue