mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix privacy policy being empty if custom setting exists but is empty (#19318)
This commit is contained in:
parent
d4b0aa7450
commit
678fc4d292
@ -68,7 +68,7 @@ class PrivacyPolicy < ActiveModelSerializers::Model
|
||||
def self.current
|
||||
custom = Setting.find_by(var: 'site_terms')
|
||||
|
||||
if custom
|
||||
if custom&.value.present?
|
||||
new(text: custom.value, updated_at: custom.updated_at)
|
||||
else
|
||||
new(text: DEFAULT_PRIVACY_POLICY, updated_at: DEFAULT_UPDATED_AT)
|
||||
|
Loading…
Reference in New Issue
Block a user