diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 6 |
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 | ||
| 245 | d_char *recipient_list(snac *snac, char *msg, int expand_public) | 245 | xs_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 | ||
| 288 | int is_msg_public(snac *snac, xs_dict *msg) | 288 | int 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 | ||
| 297 | int is_msg_for_me(snac *snac, xs_dict *c_msg) | 297 | int 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"); |