diff options
| -rw-r--r-- | html.c | 26 |
1 files changed, 12 insertions, 14 deletions
| @@ -1855,22 +1855,20 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 1855 | } | 1855 | } |
| 1856 | } | 1856 | } |
| 1857 | } | 1857 | } |
| 1858 | else | 1858 | |
| 1859 | if (strcmp(type, "Note") == 0) { | 1859 | if (strcmp(type, "Note") == 0) { |
| 1860 | if (level == 0) { | 1860 | /* is the parent not here? */ |
| 1861 | /* is the parent not here? */ | 1861 | const char *parent = get_in_reply_to(msg); |
| 1862 | const char *parent = get_in_reply_to(msg); | ||
| 1863 | 1862 | ||
| 1864 | if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) { | 1863 | if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) { |
| 1865 | xs_html_add(post_header, | 1864 | xs_html_add(post_header, |
| 1866 | xs_html_tag("div", | 1865 | xs_html_tag("div", |
| 1867 | xs_html_attr("class", "snac-origin"), | 1866 | xs_html_attr("class", "snac-origin"), |
| 1868 | xs_html_text(L("in reply to")), | 1867 | xs_html_text(L("in reply to")), |
| 1869 | xs_html_text(" "), | 1868 | xs_html_text(" "), |
| 1870 | xs_html_tag("a", | 1869 | xs_html_tag("a", |
| 1871 | xs_html_attr("href", parent), | 1870 | xs_html_attr("href", parent), |
| 1872 | xs_html_text("»")))); | 1871 | xs_html_text("»")))); |
| 1873 | } | ||
| 1874 | } | 1872 | } |
| 1875 | } | 1873 | } |
| 1876 | 1874 | ||