summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-12-23 10:31:37 +0100
committerGravatar default2024-12-23 10:31:37 +0100
commitea0c128cf0067946cab47bdce09df791be8038f5 (patch)
tree4c7ca437728192244d590db28c7e716912fe6421 /activitypub.c
parentVersion 2.67 RELEASED. (diff)
downloadpenes-snac2-ea0c128cf0067946cab47bdce09df791be8038f5.tar.gz
penes-snac2-ea0c128cf0067946cab47bdce09df791be8038f5.tar.xz
penes-snac2-ea0c128cf0067946cab47bdce09df791be8038f5.zip
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).
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
1 files changed, 5 insertions, 0 deletions
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)
178 } 178 }
179 } 179 }
180 } 180 }
181 else
182 if (xs_type(actor) == XSTYPE_DICT) {
183 /* bandwagon.fm returns this */
184 actor = xs_dict_get(actor, "id");
185 }
181 186
182 return actor; 187 return actor;
183} 188}