From 05d6e41710ed46526f42048dbf24cc3185ba3aa6 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 21 Dec 2024 17:06:01 +0100 Subject: If an attachment includes an icon, show it. --- activitypub.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 4d52efa..34cc32f 100644 --- a/activitypub.c +++ b/activitypub.c @@ -258,6 +258,10 @@ xs_list *get_attachments(const xs_dict *msg) d = xs_dict_append(d, "href", href); d = xs_dict_append(d, "name", name); + const xs_dict *icon = xs_dict_get(v, "icon"); + if (xs_type(icon) == XSTYPE_DICT) + d = xs_dict_append(d, "icon", icon); + l = xs_list_append(l, d); } } -- cgit v1.2.3