mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 00:43:38 +00:00
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).
This commit is contained in:
parent
89a8c2e0cc
commit
ea0c128cf0
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
return actor;
|
||||||
}
|
}
|
||||||
|
|
2
snac.h
2
snac.h
|
@ -32,7 +32,7 @@ extern int dbglevel;
|
||||||
|
|
||||||
#define L(s) (s)
|
#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);
|
int mkdirx(const char *pathname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue