summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-07-13 17:58:18 +0200
committerGravatar default2023-07-13 17:58:18 +0200
commit137f7756059bfcbf74ff551e72f2210e4e77789f (patch)
tree5d4e3e7d24302757bc3a166359326aa933717335 /activitypub.c
parentVersion 2.37 RELEASED. (diff)
downloadsnac2-137f7756059bfcbf74ff551e72f2210e4e77789f.tar.gz
snac2-137f7756059bfcbf74ff551e72f2210e4e77789f.tar.xz
snac2-137f7756059bfcbf74ff551e72f2210e4e77789f.zip
Minor prototype tweak.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 9fe293c..e871c8d 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -296,7 +296,7 @@ int send_to_inbox(snac *snac, const xs_str *inbox, const xs_dict *msg,
296} 296}
297 297
298 298
299d_char *get_actor_inbox(snac *snac, const char *actor) 299xs_str *get_actor_inbox(snac *snac, const char *actor)
300/* gets an actor's inbox */ 300/* gets an actor's inbox */
301{ 301{
302 xs *data = NULL; 302 xs *data = NULL;
@@ -316,7 +316,8 @@ d_char *get_actor_inbox(snac *snac, const char *actor)
316} 316}
317 317
318 318
319int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_size, int timeout) 319int send_to_actor(snac *snac, const char *actor, const char *msg,
320 xs_val **payload, int *p_size, int timeout)
320/* sends a message to an actor */ 321/* sends a message to an actor */
321{ 322{
322 int status = 400; 323 int status = 400;