From e5cf9581be6d81bd49a50c310b6bf758bd868f43 Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 24 Feb 2026 08:19:39 +0100 Subject: Also use the 'url' field in the ยป link to the post. --- html.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index 6a86304..033f8cd 100644 --- a/html.c +++ b/html.c @@ -483,9 +483,14 @@ xs_html *html_msg_icon(snac *user, const char *actor_id, const xs_dict *msg, const char *type = xs_dict_get(msg, "type"); const int scope = get_msg_visibility(msg); - if (xs_match(type, POSTLIKE_OBJECT_TYPE)) - url = xs_dict_get(msg, "id"); + if (xs_match(type, POSTLIKE_OBJECT_TYPE)) { + url = xs_dict_get(msg, "url"); + if (xs_is_list(url)) + url = xs_list_get(url, 0); + if (!xs_is_string(url)) + url = xs_dict_get(msg, "id"); + } date = xs_dict_get(msg, "published"); udate = xs_dict_get(msg, "updated"); -- cgit v1.2.3