diff options
| author | 2023-08-23 09:44:46 +0200 | |
|---|---|---|
| committer | 2023-08-23 09:44:46 +0200 | |
| commit | 505084bab74ec5a2a2c7c662cf7efe739fba3afa (patch) | |
| tree | 6bf716d08939f454049bcbb8c808427467c81c36 /activitypub.c | |
| parent | Also propagate the 'conversation' field, if there is one. (diff) | |
| download | snac2-505084bab74ec5a2a2c7c662cf7efe739fba3afa.tar.gz snac2-505084bab74ec5a2a2c7c662cf7efe739fba3afa.tar.xz snac2-505084bab74ec5a2a2c7c662cf7efe739fba3afa.zip | |
Added some support for 'Article' object types.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
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) | |||
| 192 | type = "(null)"; | 192 | type = "(null)"; |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | if (strcmp(type, "Note") == 0 || strcmp(type, "Page") == 0) { | 195 | if (strcmp(type, "Note") == 0 || |
| 196 | strcmp(type, "Page") == 0 || | ||
| 197 | strcmp(type, "Article") == 0) { | ||
| 196 | const char *actor = xs_dict_get(object, "attributedTo"); | 198 | const char *actor = xs_dict_get(object, "attributedTo"); |
| 197 | 199 | ||
| 198 | /* request (and drop) the actor for this entry */ | 200 | /* request (and drop) the actor for this entry */ |