From 3907b009769cea893b0093385239e948a9c3946b Mon Sep 17 00:00:00 2001 From: grunfink Date: Sat, 14 Feb 2026 16:46:09 +0100 Subject: Fixed crash when the 'url' field is a list. --- html.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html.c b/html.c index 36b416d..6dbb05e 100644 --- a/html.c +++ b/html.c @@ -275,6 +275,13 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date, const char *actor_id = xs_dict_get(actor, "id"); const char *html_url = xs_dict_get_def(actor, "url", actor_id); + + if (xs_is_list(html_url)) + html_url = xs_list_get(html_url, 0); + + if (!xs_is_string(html_url)) + html_url = actor_id; + xs *href = NULL; if (user) { -- cgit v1.2.3