summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-23 09:44:46 +0200
committerdefault <nobody@localhost>2023-08-23 09:44:46 +0200
commit505084bab74ec5a2a2c7c662cf7efe739fba3afa (patch)
tree6bf716d08939f454049bcbb8c808427467c81c36 /activitypub.c
parent7e63766e4a609ee0877474332f6406cc4fd9dbd9 (diff)
Added some support for 'Article' object types.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index da5ea95..35e9991 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -192,7 +192,9 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
type = "(null)";
}
- if (strcmp(type, "Note") == 0 || strcmp(type, "Page") == 0) {
+ if (strcmp(type, "Note") == 0 ||
+ strcmp(type, "Page") == 0 ||
+ strcmp(type, "Article") == 0) {
const char *actor = xs_dict_get(object, "attributedTo");
/* request (and drop) the actor for this entry */