summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-04-11 09:50:12 +0200
committerGravatar default2023-04-11 09:50:12 +0200
commit79224ca2b53c61c1a13de25c7957ec98c85db61c (patch)
treeb36693c8657b1f4e64f448873e3c51c968511563 /activitypub.c
parentAdded /api/v1/instance. (diff)
downloadsnac2-79224ca2b53c61c1a13de25c7957ec98c85db61c.tar.gz
snac2-79224ca2b53c61c1a13de25c7957ec98c85db61c.tar.xz
snac2-79224ca2b53c61c1a13de25c7957ec98c85db61c.zip
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
242} 242}
243 243
244 244
245d_char *recipient_list(snac *snac, char *msg, int expand_public) 245xs_list *recipient_list(snac *snac, const xs_dict *msg, int expand_public)
246/* returns the list of recipients for a message */ 246/* returns the list of recipients for a message */
247{ 247{
248 char *to = xs_dict_get(msg, "to"); 248 char *to = xs_dict_get(msg, "to");
@@ -285,7 +285,7 @@ d_char *recipient_list(snac *snac, char *msg, int expand_public)
285} 285}
286 286
287 287
288int is_msg_public(snac *snac, xs_dict *msg) 288int is_msg_public(snac *snac, const xs_dict *msg)
289/* checks if a message is public */ 289/* checks if a message is public */
290{ 290{
291 xs *rcpts = recipient_list(snac, msg, 0); 291 xs *rcpts = recipient_list(snac, msg, 0);
@@ -294,7 +294,7 @@ int is_msg_public(snac *snac, xs_dict *msg)
294} 294}
295 295
296 296
297int is_msg_for_me(snac *snac, xs_dict *c_msg) 297int is_msg_for_me(snac *snac, const xs_dict *c_msg)
298/* checks if this message is for me */ 298/* checks if this message is for me */
299{ 299{
300 const char *type = xs_dict_get(c_msg, "type"); 300 const char *type = xs_dict_get(c_msg, "type");