diff options
| author | 2022-09-23 18:46:30 +0200 | |
|---|---|---|
| committer | 2022-09-23 18:46:30 +0200 | |
| commit | 6586be50a0297de0e9b7e6cd66ce3b25eccf7e5c (patch) | |
| tree | b03db8aefddd9cb5966922d27a74a45d6ab00c59 /activitypub.c | |
| parent | Improved activitypub_request(). (diff) | |
| download | snac2-6586be50a0297de0e9b7e6cd66ce3b25eccf7e5c.tar.gz snac2-6586be50a0297de0e9b7e6cd66ce3b25eccf7e5c.tar.xz snac2-6586be50a0297de0e9b7e6cd66ce3b25eccf7e5c.zip | |
Fixed bug in actor_request().
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 7cbf4db..f9144a6 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -65,8 +65,7 @@ int actor_request(snac *snac, char *actor, d_char **data) | |||
| 65 | 65 | ||
| 66 | if (valid_status(status2)) { | 66 | if (valid_status(status2)) { |
| 67 | /* renew data */ | 67 | /* renew data */ |
| 68 | xs *j = xs_json_dumps_pp(payload, 4); | 68 | status = actor_add(snac, actor, payload); |
| 69 | status = actor_add(snac, actor, j); | ||
| 70 | 69 | ||
| 71 | *data = payload; | 70 | *data = payload; |
| 72 | payload = NULL; | 71 | payload = NULL; |