Add about
, privacy_policy
and terms_of_service
URLS to /api/v2/instance
(#33849)
This commit is contained in:
parent
26a3081699
commit
84164270c6
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||||
urls: {
|
urls: {
|
||||||
streaming: Rails.configuration.x.streaming_api_base_url,
|
streaming: Rails.configuration.x.streaming_api_base_url,
|
||||||
status: object.status_page_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: {
|
vapid: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue