diff options
author | Alex Schroeder <alex@gnu.org> | 2022-12-02 09:55:25 +0100 |
---|---|---|
committer | Alex Schroeder <alex@gnu.org> | 2022-12-04 10:05:53 +0100 |
commit | e4c26715a138862b17bb23562be28e6ea4d949f9 (patch) | |
tree | 0cd6e7d50d42fce8c37af64e876307ebff778c3e /utils.c | |
parent | 4b6e1df90717e2de9c31bb693a8e50b403d73d6c (diff) |
Add an option to always show sensitive content
- add a cw key to user.json
- add a cw checkbox to user setup form
- handle the cw parameter when updating user setup
- when rendering an entry, look at the cw config: if set, use a h3
heading for the summary; otherwise use details + summar + SENSITIVE
CONTENT like before
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -226,6 +226,7 @@ int adduser(char *uid) config = xs_dict_append(config, "name", uid); config = xs_dict_append(config, "avatar", ""); config = xs_dict_append(config, "bio", ""); + config = xs_dict_append(config, "cw", ""); config = xs_dict_append(config, "published", date); config = xs_dict_append(config, "passwd", pwd_f); |