Fix missing terms of services link (#35115)

This commit is contained in:
David Roetzel authored and GitHub committed 2025-06-21 08:59:47 +00:00
1 parent 3f743b1a07
commit adf812efb3
5 files changed
+60 -3

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ class InitialStateSerializer < ActiveModel::Serializer
trends_as_landing_page: Setting.trends_as_landing_page,
trends_enabled: Setting.trends,
version: instance_presenter.version,
terms_of_service_enabled: TermsOfService.live.exists?,
terms_of_service_enabled: TermsOfService.current.present?,
}
end
+1 -1
View File
@@ -61,7 +61,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
status: object.status_page_url,
about: about_url,
privacy_policy: privacy_policy_url,
terms_of_service: TermsOfService.live.exists? ? terms_of_service_url : nil,
terms_of_service: TermsOfService.current.present? ? terms_of_service_url : nil,
},
vapid: {