diff options
| -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) } } } + else + if (xs_type(actor) == XSTYPE_DICT) { + /* bandwagon.fm returns this */ + actor = xs_dict_get(actor, "id"); + } return actor; } @@ -32,7 +32,7 @@ extern int dbglevel; #define L(s) (s) -#define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Event" +#define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Audio|Event" int mkdirx(const char *pathname); |