mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
An 'Update' message is set to everyone when data is changed.
This commit is contained in:
parent
bab25259f9
commit
d29c00bd8f
2 changed files with 7 additions and 0 deletions
5
html.c
5
html.c
|
@ -990,6 +990,11 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
|
||||||
|
|
||||||
history_del(&snac, "_timeline.html");
|
history_del(&snac, "_timeline.html");
|
||||||
|
|
||||||
|
xs *a_msg = msg_actor(&snac);
|
||||||
|
xs *u_msg = msg_update(&snac, a_msg);
|
||||||
|
|
||||||
|
post(&snac, u_msg);
|
||||||
|
|
||||||
status = 303;
|
status = 303;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
snac.h
2
snac.h
|
@ -111,6 +111,8 @@ d_char *msg_follow(snac *snac, char *actor);
|
||||||
d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to);
|
d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to);
|
||||||
d_char *msg_undo(snac *snac, char *object);
|
d_char *msg_undo(snac *snac, char *object);
|
||||||
d_char *msg_delete(snac *snac, char *id);
|
d_char *msg_delete(snac *snac, char *id);
|
||||||
|
d_char *msg_actor(snac *snac);
|
||||||
|
d_char *msg_update(snac *snac, char *object);
|
||||||
|
|
||||||
int activitypub_request(snac *snac, char *url, d_char **data);
|
int activitypub_request(snac *snac, char *url, d_char **data);
|
||||||
int actor_request(snac *snac, char *actor, d_char **data);
|
int actor_request(snac *snac, char *actor, d_char **data);
|
||||||
|
|
Loading…
Reference in a new issue