summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-11 09:50:12 +0200
committerdefault <nobody@localhost>2023-04-11 09:50:12 +0200
commit79224ca2b53c61c1a13de25c7957ec98c85db61c (patch)
treeb36693c8657b1f4e64f448873e3c51c968511563 /activitypub.c
parent7c9846ef3ebc7fd458ce23aab243efa0089f9901 (diff)
New function mastodon_status().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 0caf970..d4685a1 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -242,7 +242,7 @@ int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_s
}
-d_char *recipient_list(snac *snac, char *msg, int expand_public)
+xs_list *recipient_list(snac *snac, const xs_dict *msg, int expand_public)
/* returns the list of recipients for a message */
{
char *to = xs_dict_get(msg, "to");
@@ -285,7 +285,7 @@ d_char *recipient_list(snac *snac, char *msg, int expand_public)
}
-int is_msg_public(snac *snac, xs_dict *msg)
+int is_msg_public(snac *snac, const xs_dict *msg)
/* checks if a message is public */
{
xs *rcpts = recipient_list(snac, msg, 0);
@@ -294,7 +294,7 @@ int is_msg_public(snac *snac, xs_dict *msg)
}
-int is_msg_for_me(snac *snac, xs_dict *c_msg)
+int is_msg_for_me(snac *snac, const xs_dict *c_msg)
/* checks if this message is for me */
{
const char *type = xs_dict_get(c_msg, "type");