diff options
| author | 2022-10-01 21:01:54 +0200 | |
|---|---|---|
| committer | 2022-10-01 21:01:54 +0200 | |
| commit | be3191ee5d968fd8428e71888d040c4f710f6428 (patch) | |
| tree | 3d18152617e626cf78105a6e28ce70c997f96934 | |
| parent | Implemented the helper thread. (diff) | |
| download | snac2-be3191ee5d968fd8428e71888d040c4f710f6428.tar.gz snac2-be3191ee5d968fd8428e71888d040c4f710f6428.tar.xz snac2-be3191ee5d968fd8428e71888d040c4f710f6428.zip | |
Fixed crash.
| -rw-r--r-- | activitypub.c | 5 |
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"); |