summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-12-21 17:06:01 +0100
committerGravatar default2024-12-21 17:06:01 +0100
commit05d6e41710ed46526f42048dbf24cc3185ba3aa6 (patch)
tree8337159d9c0f7471eb2a5d1d89e9b3fb77becd4d /activitypub.c
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-05d6e41710ed46526f42048dbf24cc3185ba3aa6.tar.gz
penes-snac2-05d6e41710ed46526f42048dbf24cc3185ba3aa6.tar.xz
penes-snac2-05d6e41710ed46526f42048dbf24cc3185ba3aa6.zip
If an attachment includes an icon, show it.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 4 insertions, 0 deletions
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)
258 d = xs_dict_append(d, "href", href); 258 d = xs_dict_append(d, "href", href);
259 d = xs_dict_append(d, "name", name); 259 d = xs_dict_append(d, "name", name);
260 260
261 const xs_dict *icon = xs_dict_get(v, "icon");
262 if (xs_type(icon) == XSTYPE_DICT)
263 d = xs_dict_append(d, "icon", icon);
264
261 l = xs_list_append(l, d); 265 l = xs_list_append(l, d);
262 } 266 }
263 } 267 }