diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -2633,7 +2633,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 2633 | xs *timestamp = xs_number_new(ts); | 2633 | xs *timestamp = xs_number_new(ts); |
| 2634 | srv_log(xs_fmt("user dismissed announcements until %d", ts)); | 2634 | srv_log(xs_fmt("user dismissed announcements until %d", ts)); |
| 2635 | snac.config = xs_dict_set(snac.config, "last_announcement", timestamp); | 2635 | snac.config = xs_dict_set(snac.config, "last_announcement", timestamp); |
| 2636 | user_persist(&snac); | 2636 | user_persist(&snac, 0); |
| 2637 | } | 2637 | } |
| 2638 | } | 2638 | } |
| 2639 | 2639 | ||
| @@ -3380,7 +3380,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 3380 | snac.config = xs_dict_set(snac.config, "passwd", pw); | 3380 | snac.config = xs_dict_set(snac.config, "passwd", pw); |
| 3381 | } | 3381 | } |
| 3382 | 3382 | ||
| 3383 | user_persist(&snac); | 3383 | user_persist(&snac, 1); |
| 3384 | 3384 | ||
| 3385 | status = HTTP_STATUS_SEE_OTHER; | 3385 | status = HTTP_STATUS_SEE_OTHER; |
| 3386 | } | 3386 | } |