mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
New function post.
This commit is contained in:
parent
c37a99b97c
commit
f410e3a40a
1 changed files with 13 additions and 0 deletions
|
@ -431,6 +431,19 @@ int is_msg_public(snac *snac, char *msg)
|
|||
}
|
||||
|
||||
|
||||
void post(snac *snac, char *msg)
|
||||
/* enqueues a message to all its recipients */
|
||||
{
|
||||
xs *rcpts = recipient_list(snac, msg, 1);
|
||||
char *p, *v;
|
||||
|
||||
p = rcpts;
|
||||
while (xs_list_iter(&p, &v)) {
|
||||
enqueue_output(snac, msg, v, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** HTTP handlers */
|
||||
|
||||
int activitypub_get_handler(d_char *req, char *q_path,
|
||||
|
|
Loading…
Reference in a new issue