diff options
| author | 2024-12-23 10:31:37 +0100 | |
|---|---|---|
| committer | 2024-12-23 10:31:37 +0100 | |
| commit | ea0c128cf0067946cab47bdce09df791be8038f5 (patch) | |
| tree | 4c7ca437728192244d590db28c7e716912fe6421 | |
| parent | Version 2.67 RELEASED. (diff) | |
| download | snac2-ea0c128cf0067946cab47bdce09df791be8038f5.tar.gz snac2-ea0c128cf0067946cab47bdce09df791be8038f5.tar.xz 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).
| -rw-r--r-- | activitypub.c | 5 | ||||
| -rw-r--r-- | snac.h | 2 |
2 files changed, 6 insertions, 1 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 | } |
| @@ -32,7 +32,7 @@ extern int dbglevel; | |||
| 32 | 32 | ||
| 33 | #define L(s) (s) | 33 | #define L(s) (s) |
| 34 | 34 | ||
| 35 | #define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Event" | 35 | #define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Audio|Event" |
| 36 | 36 | ||
| 37 | int mkdirx(const char *pathname); | 37 | int mkdirx(const char *pathname); |
| 38 | 38 | ||