aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-05-27 21:14:23 +0200
committergrunfink <grunfink@comam.es>2025-05-27 21:14:23 +0200
commit5bc451159420d5d51a507fda82a623069cfae92b (patch)
tree725767368e77caa9751d39778b046b5ad00e4806 /html.c
parent631e44a64a20741b5e4716bf75caf7fa743fef82 (diff)
New function timeline_here().
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/html.c b/html.c
index 4aa0fa4..4c30355 100644
--- a/html.c
+++ b/html.c
@@ -2115,9 +2115,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
const char *parent = get_in_reply_to(msg);
if (!xs_is_null(parent) && *parent) {
- xs *md5 = xs_md5_hex(parent, strlen(parent));
-
- if (!timeline_here_by_md5(user, md5)) {
+ if (!timeline_here(user, parent)) {
xs_html_add(post_header,
xs_html_tag("div",
xs_html_attr("class", "snac-origin"),
@@ -3773,9 +3771,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
q = url_acct;
/* add the post to the timeline */
- xs *md5 = xs_md5_hex(q, strlen(q));
-
- if (!timeline_here_by_md5(&snac, md5))
+ if (!timeline_here(&snac, q))
timeline_add(&snac, q, object);
}
}