Update authenticated.py

This commit is contained in:
Groupr 2025-11-11 04:29:54 +00:00
parent 734ac9c838
commit c812836ab9

View file

@ -63,7 +63,7 @@ def namespace_settings(request):
link_protection_checkbox = p.get("link-protection-checkbox", "off")
reverse_order_checkbox = p.get("reverse-order-checkbox", "off")
group_conversations_checkbox = p.get("group-conversations-checkbox", "off")
mathjax_checkbox = p.get("mathjax-checkbox", "off")
katex_checkbox = p.get("katex-checkbox", "off")
ignore_query_string_checkbox = p.get("ignore-query-string-checkbox", "off")
hide_powered_by_checkbox = p.get("hide-powered-by-checkbox", "off")
@ -71,7 +71,7 @@ def namespace_settings(request):
link_protection = checkbox_to_bool(link_protection_checkbox)
reverse_order = checkbox_to_bool(reverse_order_checkbox)
group_conversations = checkbox_to_bool(group_conversations_checkbox)
mathjax = checkbox_to_bool(mathjax_checkbox)
katex = checkbox_to_bool(katex_checkbox)
ignore_query_string = checkbox_to_bool(ignore_query_string_checkbox)
hide_powered_by = checkbox_to_bool(hide_powered_by_checkbox)
@ -195,10 +195,10 @@ def namespace_settings(request):
)
)
if mathjax != request.namespace.mathjax:
request.namespace.mathjax = mathjax
if katex != request.namespace.katex:
request.namespace.katex = katex
request.session.flash(
("You turned {} MathJax".format(mathjax_checkbox), "success")
("You turned {} KaTeX".format(katex_checkbox), "success")
)
request.dbsession.add(request.namespace)