mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
Add feed settings to /api/v2/instance
This commit is contained in:
parent
39b45dedda
commit
abe1a27a42
|
@ -100,6 +100,21 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||||
enabled: TranslationService.configured?,
|
enabled: TranslationService.configured?,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
timelines_access: {
|
||||||
|
live_feeds: {
|
||||||
|
local: Setting.local_live_feed_access,
|
||||||
|
remote: Setting.remote_live_feed_access,
|
||||||
|
},
|
||||||
|
hashtag_feeds: {
|
||||||
|
local: Setting.local_topic_feed_access,
|
||||||
|
remote: Setting.remote_topic_feed_access,
|
||||||
|
},
|
||||||
|
trending_link_feeds: {
|
||||||
|
local: Setting.local_topic_feed_access,
|
||||||
|
remote: Setting.remote_topic_feed_access,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
limited_federation: limited_federation?,
|
limited_federation: limited_federation?,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user