aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-22 15:23:37 +0100
committerdefault <nobody@localhost>2025-01-22 15:23:37 +0100
commit0cae9a520c7f3d72ecdabf1fac066f1da943605c (patch)
tree62f805c26c5135801dcc19b1aa75fde4c1d20544 /html.c
parenta51c996efe0e41334523602271740b6e6b2501c0 (diff)
Minor visual tweak.
Diffstat (limited to 'html.c')
-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,
}
}
}
- else
+
if (strcmp(type, "Note") == 0) {
- if (level == 0) {
- /* is the parent not here? */
- const char *parent = get_in_reply_to(msg);
+ /* is the parent not here? */
+ const char *parent = get_in_reply_to(msg);
- if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) {
- xs_html_add(post_header,
- xs_html_tag("div",
- xs_html_attr("class", "snac-origin"),
- xs_html_text(L("in reply to")),
- xs_html_text(" "),
- xs_html_tag("a",
- xs_html_attr("href", parent),
- xs_html_text("»"))));
- }
+ if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) {
+ xs_html_add(post_header,
+ xs_html_tag("div",
+ xs_html_attr("class", "snac-origin"),
+ xs_html_text(L("in reply to")),
+ xs_html_text(" "),
+ xs_html_tag("a",
+ xs_html_attr("href", parent),
+ xs_html_text("»"))));
}
}