summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorAlex Schroeder <alex@gnu.org>2022-12-02 09:55:25 +0100
committerAlex Schroeder <alex@gnu.org>2022-12-04 10:05:53 +0100
commite4c26715a138862b17bb23562be28e6ea4d949f9 (patch)
tree0cd6e7d50d42fce8c37af64e876307ebff778c3e /utils.c
parent4b6e1df90717e2de9c31bb693a8e50b403d73d6c (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index f3e6561..8b0b458 100644
--- a/utils.c
+++ b/utils.c
@@ -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);