commit 0cae9a5

default  ·  2025-01-22 14:23:37 +0000 UTC
parent a51c996
Minor visual tweak.
1 files changed,  +12, -14
M html.c
M html.c
+12, -14
 1@@ -1855,22 +1855,20 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
 2             }
 3         }
 4     }
 5-    else
 6+
 7     if (strcmp(type, "Note") == 0) {
 8-        if (level == 0) {
 9-            /* is the parent not here? */
10-            const char *parent = get_in_reply_to(msg);
11+        /* is the parent not here? */
12+        const char *parent = get_in_reply_to(msg);
13 
14-            if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) {
15-                xs_html_add(post_header,
16-                    xs_html_tag("div",
17-                        xs_html_attr("class", "snac-origin"),
18-                        xs_html_text(L("in reply to")),
19-                        xs_html_text(" "),
20-                        xs_html_tag("a",
21-                            xs_html_attr("href", parent),
22-                            xs_html_text("»"))));
23-            }
24+        if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) {
25+            xs_html_add(post_header,
26+                xs_html_tag("div",
27+                    xs_html_attr("class", "snac-origin"),
28+                    xs_html_text(L("in reply to")),
29+                    xs_html_text(" "),
30+                    xs_html_tag("a",
31+                        xs_html_attr("href", parent),
32+                        xs_html_text("»"))));
33         }
34     }
35