diff options
| author | 2022-12-02 09:55:25 +0100 | |
|---|---|---|
| committer | 2022-12-04 10:05:53 +0100 | |
| commit | e4c26715a138862b17bb23562be28e6ea4d949f9 (patch) | |
| tree | 0cd6e7d50d42fce8c37af64e876307ebff778c3e /utils.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-e4c26715a138862b17bb23562be28e6ea4d949f9.tar.gz snac2-e4c26715a138862b17bb23562be28e6ea4d949f9.tar.xz snac2-e4c26715a138862b17bb23562be28e6ea4d949f9.zip | |
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) | |||
| 226 | config = xs_dict_append(config, "name", uid); | 226 | config = xs_dict_append(config, "name", uid); |
| 227 | config = xs_dict_append(config, "avatar", ""); | 227 | config = xs_dict_append(config, "avatar", ""); |
| 228 | config = xs_dict_append(config, "bio", ""); | 228 | config = xs_dict_append(config, "bio", ""); |
| 229 | config = xs_dict_append(config, "cw", ""); | ||
| 229 | config = xs_dict_append(config, "published", date); | 230 | config = xs_dict_append(config, "published", date); |
| 230 | config = xs_dict_append(config, "passwd", pwd_f); | 231 | config = xs_dict_append(config, "passwd", pwd_f); |
| 231 | 232 | ||