mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Only show the 'in reply to' link if level == 0.
This commit is contained in:
parent
03ed4d5309
commit
5d126d0e9e
1 changed files with 11 additions and 9 deletions
2
html.c
2
html.c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue