From ea0c128cf0067946cab47bdce09df791be8038f5 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 23 Dec 2024 10:31:37 +0100 Subject: Accept 'Audio' as a valid entry type. Also, done a tweak to read attributedTo fields that are a JSON object, with the id in the "id" field (returned by bandwagon.fm). --- activitypub.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 34cc32f..88d8fd8 100644 --- a/activitypub.c +++ b/activitypub.c @@ -178,6 +178,11 @@ const char *get_atto(const xs_dict *msg) } } } + else + if (xs_type(actor) == XSTYPE_DICT) { + /* bandwagon.fm returns this */ + actor = xs_dict_get(actor, "id"); + } return actor; } -- cgit v1.2.3