diff options
author | default <nobody@localhost> | 2024-05-31 17:51:33 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-31 17:51:33 +0200 |
commit | 6d29cfd63d744d91fa549bbd89ed2bf51c0c4760 (patch) | |
tree | 631c6bb402a76823bbc5f4c22afdefe5463fc9af /html.c | |
parent | fb3bda700caae47f2cb45e8f4a47f4538e8f65ed (diff) |
Don't propagate the user change after dismissing the announcement.
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, xs *timestamp = xs_number_new(ts); srv_log(xs_fmt("user dismissed announcements until %d", ts)); snac.config = xs_dict_set(snac.config, "last_announcement", timestamp); - user_persist(&snac); + user_persist(&snac, 0); } } @@ -3380,7 +3380,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, snac.config = xs_dict_set(snac.config, "passwd", pw); } - user_persist(&snac); + user_persist(&snac, 1); status = HTTP_STATUS_SEE_OTHER; } |