|
@@ -2054,11 +2054,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
|
|
|
if (user != NULL && !is_msg_public(msg)) {
|
|
|
char *irt = xs_dict_get(msg, "inReplyTo");
|
|
|
|
|
|
+
|
|
|
if (!xs_is_null(irt) && !object_here(irt)) {
|
|
|
|
|
|
- xs_list *to = xs_dict_get(msg, "to");
|
|
|
+ xs_list *to = xs_dict_get_def(msg, "to", xs_stock(XSTYPE_LIST));
|
|
|
+ xs_list *cc = xs_dict_get_def(msg, "cc", xs_stock(XSTYPE_LIST));
|
|
|
|
|
|
- if (xs_type(to) == XSTYPE_LIST && xs_list_in(to, user->actor) == -1) {
|
|
|
+ if (xs_list_in(to, user->actor) == -1 && xs_list_in(cc, user->actor) == -1) {
|
|
|
snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v));
|
|
|
continue;
|
|
|
}
|