allow ppl to override poor mode with the signature setting

pull/214/head
Aevann 2023-10-12 22:24:17 +03:00
parent 4b015f1c6b
commit bd992c54cf
2 changed files with 3 additions and 1 deletions

View File

@ -1333,7 +1333,7 @@ class User(Base):
if not self.sig_html or not self.patron:
return ''
if v and (not v.show_sigs or v.poor):
if v and not v.show_sigs:
return ''
return f'<div id="signature-{self.id}" class="user-signature"><hr>{self.sig_html}</div>'

View File

@ -140,6 +140,8 @@ def settings_personal_post(v):
elif request.values.get("poor", v.poor) != v.poor:
updated = True
session['poor'] = request.values.get("poor", v.poor) == 'true'
if session['poor']:
v.show_sigs = False
slur_filter_updated = updated or update_potentially_permanent_flag("slurreplacer", "slurreplacer", "slur replacer", 192)
if isinstance(slur_filter_updated, bool):