Only show the 'in reply to' link if level == 0.

This commit is contained in:
default 2023-02-08 14:07:13 +01:00
parent 03ed4d5309
commit 5d126d0e9e

2
html.c
View file

@ -702,6 +702,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons
}
else
if (strcmp(type, "Note") == 0) {
if (level == 0) {
/* is the parent not here? */
char *parent = xs_dict_get(msg, "inReplyTo");
@ -715,6 +716,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons
s = xs_str_cat(s, s1);
}
}
}
s = html_msg_icon(snac, s, msg);