diff options
| author | 2024-11-19 06:46:14 +0100 | |
|---|---|---|
| committer | 2024-11-19 06:46:14 +0100 | |
| commit | 085caa7747a3bbebbd2ec09b3264dc6fcc5a7624 (patch) | |
| tree | 60342848dd7852e8a6448f164a50f57be8a8b5f6 /html.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-085caa7747a3bbebbd2ec09b3264dc6fcc5a7624.tar.gz snac2-085caa7747a3bbebbd2ec09b3264dc6fcc5a7624.tar.xz snac2-085caa7747a3bbebbd2ec09b3264dc6fcc5a7624.zip | |
New function get_in_reply_to().
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1670,7 +1670,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 1670 | if (strcmp(type, "Note") == 0) { | 1670 | if (strcmp(type, "Note") == 0) { |
| 1671 | if (level == 0) { | 1671 | if (level == 0) { |
| 1672 | /* is the parent not here? */ | 1672 | /* is the parent not here? */ |
| 1673 | const char *parent = xs_dict_get(msg, "inReplyTo"); | 1673 | const char *parent = get_in_reply_to(msg); |
| 1674 | 1674 | ||
| 1675 | if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) { | 1675 | if (user && !xs_is_null(parent) && *parent && !timeline_here(user, parent)) { |
| 1676 | xs_html_add(post_header, | 1676 | xs_html_add(post_header, |
| @@ -2329,7 +2329,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 2329 | 2329 | ||
| 2330 | /* is this message a non-public reply? */ | 2330 | /* is this message a non-public reply? */ |
| 2331 | if (user != NULL && !is_msg_public(msg)) { | 2331 | if (user != NULL && !is_msg_public(msg)) { |
| 2332 | const char *irt = xs_dict_get(msg, "inReplyTo"); | 2332 | const char *irt = get_in_reply_to(msg); |
| 2333 | 2333 | ||
| 2334 | /* is it a reply to something not in the storage? */ | 2334 | /* is it a reply to something not in the storage? */ |
| 2335 | if (!xs_is_null(irt) && !object_here(irt)) { | 2335 | if (!xs_is_null(irt) && !object_here(irt)) { |