mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-18 09:20:48 -04:00
Add about
, privacy_policy
and terms_of_service
URLS to /api/v2/instance
(#33849)
This commit is contained in:
parent
26a3081699
commit
84164270c6
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user