Add `about`, `privacy_policy` and `terms_of_service` URLS to `/api/v2/instance` (#33849)

pull/2986/head
Claire 2025-03-05 10:00:47 +01:00 committed by GitHub
parent 26a3081699
commit 84164270c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ class REST::InstanceSerializer < ActiveModel::Serializer
urls: {
streaming: Rails.configuration.x.streaming_api_base_url,
status: object.status_page_url,
about: about_url,
privacy_policy: privacy_policy_url,
terms_of_service: TermsOfService.live.exists? ? terms_of_service_url : nil,
},
vapid: {