summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2025-01-22 15:23:37 +0100
committerGravatar default2025-01-22 15:23:37 +0100
commit0cae9a520c7f3d72ecdabf1fac066f1da943605c (patch)
tree62f805c26c5135801dcc19b1aa75fde4c1d20544
parentMore tweaks to hashtag following code. (diff)
downloadpenes-snac2-0cae9a520c7f3d72ecdabf1fac066f1da943605c.tar.gz
penes-snac2-0cae9a520c7f3d72ecdabf1fac066f1da943605c.tar.xz
penes-snac2-0cae9a520c7f3d72ecdabf1fac066f1da943605c.zip
Minor visual tweak.
-rw-r--r--html.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/html.c b/html.c
index 2a02d18..fcf2904 100644
--- a/html.c
+++ b/html.c
@@ -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