diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -1915,6 +1915,16 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, | |||
| 1915 | if (user == NULL && is_msg_from_private_user(msg)) | 1915 | if (user == NULL && is_msg_from_private_user(msg)) |
| 1916 | continue; | 1916 | continue; |
| 1917 | 1917 | ||
| 1918 | /* is this message a non-public reply? */ | ||
| 1919 | if (user != NULL && !is_msg_public(msg)) { | ||
| 1920 | char *irt = xs_dict_get(msg, "inReplyTo"); | ||
| 1921 | |||
| 1922 | if (!xs_is_null(irt) && !object_here(irt)) { | ||
| 1923 | snac_debug(user, 1, xs_fmt("skipping non-public reply to an unknown post %s", v)); | ||
| 1924 | continue; | ||
| 1925 | } | ||
| 1926 | } | ||
| 1927 | |||
| 1918 | xs_html *entry = html_entry(user, msg, local, 0, v, user ? 0 : 1); | 1928 | xs_html *entry = html_entry(user, msg, local, 0, v, user ? 0 : 1); |
| 1919 | 1929 | ||
| 1920 | if (entry != NULL) | 1930 | if (entry != NULL) |