diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index ef2dae4..2216fdc 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -323,7 +323,7 @@ int send_to_inbox(snac *snac, const xs_str *inbox, const xs_dict *msg, | |||
| 323 | } | 323 | } |
| 324 | 324 | ||
| 325 | 325 | ||
| 326 | xs_str *get_actor_inbox(snac *snac, const char *actor) | 326 | xs_str *get_actor_inbox(const char *actor) |
| 327 | /* gets an actor's inbox */ | 327 | /* gets an actor's inbox */ |
| 328 | { | 328 | { |
| 329 | xs *data = NULL; | 329 | xs *data = NULL; |
| @@ -348,7 +348,7 @@ int send_to_actor(snac *snac, const char *actor, const xs_dict *msg, | |||
| 348 | /* sends a message to an actor */ | 348 | /* sends a message to an actor */ |
| 349 | { | 349 | { |
| 350 | int status = 400; | 350 | int status = 400; |
| 351 | xs *inbox = get_actor_inbox(snac, actor); | 351 | xs *inbox = get_actor_inbox(actor); |
| 352 | 352 | ||
| 353 | if (!xs_is_null(inbox)) | 353 | if (!xs_is_null(inbox)) |
| 354 | status = send_to_inbox(snac, inbox, msg, payload, p_size, timeout); | 354 | status = send_to_inbox(snac, inbox, msg, payload, p_size, timeout); |
| @@ -1518,7 +1518,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) | |||
| 1518 | /* check the signature */ | 1518 | /* check the signature */ |
| 1519 | xs *sig_err = NULL; | 1519 | xs *sig_err = NULL; |
| 1520 | 1520 | ||
| 1521 | if (!check_signature(snac, req, &sig_err)) { | 1521 | if (!check_signature(req, &sig_err)) { |
| 1522 | srv_log(xs_fmt("bad signature %s (%s)", actor, sig_err)); | 1522 | srv_log(xs_fmt("bad signature %s (%s)", actor, sig_err)); |
| 1523 | 1523 | ||
| 1524 | srv_archive_error("check_signature", sig_err, req, msg); | 1524 | srv_archive_error("check_signature", sig_err, req, msg); |
| @@ -1818,7 +1818,7 @@ void process_user_queue_item(snac *snac, xs_dict *q_item) | |||
| 1818 | /* iterate the recipients */ | 1818 | /* iterate the recipients */ |
| 1819 | p = rcpts; | 1819 | p = rcpts; |
| 1820 | while (xs_list_iter(&p, &actor)) { | 1820 | while (xs_list_iter(&p, &actor)) { |
| 1821 | xs *inbox = get_actor_inbox(snac, actor); | 1821 | xs *inbox = get_actor_inbox(actor); |
| 1822 | 1822 | ||
| 1823 | if (inbox != NULL) { | 1823 | if (inbox != NULL) { |
| 1824 | /* add to the set and, if it's not there, send message */ | 1824 | /* add to the set and, if it's not there, send message */ |