Fix missing terms of services link (#35115)

This commit is contained in:
David Roetzel 2025-06-21 10:59:47 +02:00 committed by GitHub
commit adf812efb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 60 additions and 3 deletions

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: {