diff options
author | default <nobody@localhost> | 2023-12-11 08:00:49 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-12-11 08:00:49 +0100 |
commit | 8d0a69cd759813b1304605d1676fbca063f0ccdc (patch) | |
tree | 61f8c45d40e6b352b394115da1c19b472a1dc1f9 /snac.h | |
parent | c693c7c62c2360826e15e31f259b00b5814c2d3e (diff) |
Reverted actor_request() without user.
Some sites require even Person requests to be signed.
Diffstat (limited to 'snac.h')
-rw-r--r-- | snac.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -212,7 +212,7 @@ xs_dict *http_signed_request(snac *snac, const char *method, const char *url, const char *body, int b_size, int *status, xs_str **payload, int *p_size, int timeout); -int check_signature(xs_dict *req, xs_str **err); +int check_signature(snac *user, xs_dict *req, xs_str **err); void httpd(void); @@ -242,7 +242,7 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach, const xs_list *opts, int multiple, int end_secs); int activitypub_request(snac *snac, const char *url, xs_dict **data); -int actor_request(const char *actor, xs_dict **data); +int actor_request(snac *user, const char *actor, xs_dict **data); void timeline_request_replies(snac *user, const char *id); int send_to_inbox_raw(const char *keyid, const char *seckey, const xs_str *inbox, const xs_dict *msg, |