forked from rDrama/rDrama
allow ppl to override poor mode with the signature setting
parent
4b015f1c6b
commit
bd992c54cf
|
@ -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>'
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue