diff options
| author | 2022-10-02 17:42:36 +0200 | |
|---|---|---|
| committer | 2022-10-02 17:42:36 +0200 | |
| commit | d29c00bd8f35c41a8cd9826d3353e1768da4e670 (patch) | |
| tree | cf1d47d76e5d5cab71b33962a9bcc4f0395bee43 /html.c | |
| parent | User data can be modified from the web interface. (diff) | |
| download | snac2-d29c00bd8f35c41a8cd9826d3353e1768da4e670.tar.gz snac2-d29c00bd8f35c41a8cd9826d3353e1768da4e670.tar.xz snac2-d29c00bd8f35c41a8cd9826d3353e1768da4e670.zip | |
An 'Update' message is set to everyone when data is changed.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -990,6 +990,11 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 990 | 990 | ||
| 991 | history_del(&snac, "_timeline.html"); | 991 | history_del(&snac, "_timeline.html"); |
| 992 | 992 | ||
| 993 | xs *a_msg = msg_actor(&snac); | ||
| 994 | xs *u_msg = msg_update(&snac, a_msg); | ||
| 995 | |||
| 996 | post(&snac, u_msg); | ||
| 997 | |||
| 993 | status = 303; | 998 | status = 303; |
| 994 | } | 999 | } |
| 995 | 1000 | ||