diff options
| author | 2023-02-08 13:30:15 +0100 | |
|---|---|---|
| committer | 2023-02-08 13:30:15 +0100 | |
| commit | 95926fb98a6d92d9cb05bfb51a512321e572477c (patch) | |
| tree | 2d61844e1a072f321cf17098599db151016cc5d4 /html.c | |
| parent | New function timeline_here(). (diff) | |
| download | snac2-95926fb98a6d92d9cb05bfb51a512321e572477c.tar.gz snac2-95926fb98a6d92d9cb05bfb51a512321e572477c.tar.xz snac2-95926fb98a6d92d9cb05bfb51a512321e572477c.zip | |
Use timeline_here() for parents in html_entry().
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -705,7 +705,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons | |||
| 705 | /* is the parent not here? */ | 705 | /* is the parent not here? */ |
| 706 | char *parent = xs_dict_get(msg, "inReplyTo"); | 706 | char *parent = xs_dict_get(msg, "inReplyTo"); |
| 707 | 707 | ||
| 708 | if (!xs_is_null(parent) && *parent && !object_here(parent)) { | 708 | if (!xs_is_null(parent) && *parent && !timeline_here(snac, parent)) { |
| 709 | xs *s1 = xs_fmt( | 709 | xs *s1 = xs_fmt( |
| 710 | "<div class=\"snac-origin\">%s " | 710 | "<div class=\"snac-origin\">%s " |
| 711 | "<a href=\"%s\">»</a></div>\n", | 711 | "<a href=\"%s\">»</a></div>\n", |