add cw to def settings_personal_post

pull/220/head
G-tix 2023-12-21 19:56:48 +00:00
parent 3d2cd78e0a
commit 009876590f
1 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,10 @@ def settings_personal_post(v):
updated = True
session["cursormarsey"] = int(request.values.get("cursormarsey") == 'true')
elif not updated and request.values.get("cw_warnings", v.cw_warnings) != v.cw_warnings:
updated = True
session["cw_warnings"] = int(request.values.get("cw_warnings") == 'true')
elif not updated and request.values.get("nsfw_warnings", v.nsfw_warnings) != v.nsfw_warnings:
updated = True
session["nsfw_warnings"] = int(request.values.get("nsfw_warnings") == 'true')