From 0bba515cf0e7b77a7daf697b1c8a13d185715bca Mon Sep 17 00:00:00 2001 From: default Date: Fri, 23 Dec 2022 10:01:10 +0100 Subject: timeline_request() fixes the canonical id for the object. --- html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index d3b4148..20b170b 100644 --- a/html.c +++ b/html.c @@ -1358,7 +1358,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, if (msg != NULL) { enqueue_message(&snac, msg); - timeline_admire(&snac, msg, id, snac.actor, 1); + timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 1); } } else @@ -1367,7 +1367,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, if (msg != NULL) { enqueue_message(&snac, msg); - timeline_admire(&snac, msg, id, snac.actor, 0); + timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 0); } } else -- cgit v1.2.3