aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2024-11-19 21:40:18 +0100
committershtrophic <christoph@liebender.dev>2024-11-19 21:40:18 +0100
commit67431130162b1027cc3894f947be309b2daa3cd3 (patch)
tree847930f363f0d6f13e688342dab8623de78db651 /html.c
parent972783fcb2d7855847f0ea0832da2abc71aa6b30 (diff)
parent3a9118524831d1f3a9168034c1655e515f162020 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 3a2b14f..74de47d 100644
--- a/html.c
+++ b/html.c
@@ -1670,7 +1670,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
if (strcmp(type, "Note") == 0) {
if (level == 0) {
/* is the parent not here? */
- const char *parent = xs_dict_get(msg, "inReplyTo");
+ const char *parent = get_in_reply_to(msg);
if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) {
xs_html_add(post_header,
@@ -2329,7 +2329,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
/* is this message a non-public reply? */
if (user != NULL && !is_msg_public(msg)) {
- const char *irt = xs_dict_get(msg, "inReplyTo");
+ const char *irt = get_in_reply_to(msg);
/* is it a reply to something not in the storage? */
if (!xs_is_null(irt) && !object_here(irt)) {