summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--activitypub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 3aaef57..9fee973 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -90,10 +90,11 @@ int timeline_request(snac *snac, char *id, char *referrer)
90 status = activitypub_request(snac, id, &object); 90 status = activitypub_request(snac, id, &object);
91 91
92 if (valid_status(status)) { 92 if (valid_status(status)) {
93 char *actor = xs_dict_get(object, "actor"); 93 char *actor = xs_dict_get(object, "attributedTo");
94 94
95 /* request (and drop) the actor for this entry */ 95 /* request (and drop) the actor for this entry */
96 actor_request(snac, actor, NULL); 96 if (!xs_is_null(actor))
97 actor_request(snac, actor, NULL);
97 98
98 /* does it have an ancestor? */ 99 /* does it have an ancestor? */
99 char *in_reply_to = xs_dict_get(object, "inReplyTo"); 100 char *in_reply_to = xs_dict_get(object, "inReplyTo");