Slon/Modules/ActivityPub: Deduplicate signed requests into @slon_activitypub_signed_request
This commit is contained in:
parent
500a3115cc
commit
a9f5a1de0c
4 changed files with 143 additions and 294 deletions
|
@ -1,6 +1,8 @@
|
|||
#define SLON_API_LOCAL_TIME_OFFSET 3550
|
||||
#define SLON_AUTH_ACCOUNT_ID U8* account_id = Json.Get(session->auth, "account_id");
|
||||
|
||||
extern @http_response* @slon_activitypub_signed_request(U8* url_string, U8* fetch_buffer, JsonObject* request_object = NULL, I64 verb = SLON_HTTP_VERB_POST, U8* signatory = NULL);
|
||||
|
||||
Bool @slon_api_authorized(SlonHttpSession* session)
|
||||
{
|
||||
return session->auth > 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue