forked from rDrama/rDrama
"Hide Signatures" -> "User Signatures"
parent
a1de1cf7c8
commit
3dc652f867
|
@ -112,7 +112,7 @@ class User(Base):
|
|||
sig = deferred(Column(String))
|
||||
sig_html = Column(String)
|
||||
fp = Column(String)
|
||||
sigs_disabled = Column(Boolean)
|
||||
show_sigs = Column(Boolean, default=True)
|
||||
progressivestack = Column(Integer, default=0)
|
||||
deflector = Column(Integer, default=0)
|
||||
friends = deferred(Column(String))
|
||||
|
@ -1365,7 +1365,7 @@ class User(Base):
|
|||
if not self.sig_html or not self.patron:
|
||||
return ''
|
||||
|
||||
if v and (v.sigs_disabled or v.poor):
|
||||
if v and (not v.show_sigs or v.poor):
|
||||
return ''
|
||||
|
||||
return f'<div id="signature-{self.id}" class="user-signature"><hr>{self.sig_html}</div>'
|
||||
|
|
|
@ -161,7 +161,7 @@ def settings_personal_post(v):
|
|||
updated = updated or update_flag("nitter", "nitter")
|
||||
updated = updated or update_flag("imginn", "imginn")
|
||||
updated = updated or update_flag("controversial", "controversial")
|
||||
updated = updated or update_flag("sigs_disabled", "sigs_disabled")
|
||||
updated = updated or update_flag("show_sigs", "show_sigs")
|
||||
updated = updated or update_flag("is_private", "private")
|
||||
updated = updated or update_flag("lifetimedonated_visible", "lifetimedonated_visible")
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
<section id="site-settings-content-filters" class="settings-section-section">
|
||||
<h5>Content Filters</h5>
|
||||
<div class="settings-section rounded">
|
||||
{{common.toggle_section('Disable Signatures', 'sigs_disabled', 'sigs_disabled', v.sigs_disabled, 'Hide user signatures.', false)}}
|
||||
{{common.toggle_section('User Signatures', 'show_sigs', 'show_sigs', v.show_sigs, 'Show user signatures.', false)}}
|
||||
{% if FEATURES['NSFW_MARKING'] %}
|
||||
{{common.toggle_section('NSFW Warnings', 'nsfw_warnings', 'nsfw_warnings', v.nsfw_warnings, "Show a warning when viewing NSFW posts and collapse NSFW comments.", false)}}
|
||||
{% endif %}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
alter table users rename column sigs_disabled to show_sigs;
|
||||
update users set show_sigs=true;
|
||||
alter table users alter column show_sigs set not null;
|
Loading…
Reference in New Issue