0
0
Fork 0

Fix #525 - Add instance information API

This commit is contained in:
Eugen Rochko 2017-03-15 23:12:48 +01:00
parent 7b58c1a694
commit 6be7bde243
6 changed files with 19 additions and 28 deletions

View file

@ -0,0 +1,6 @@
object false
node(:uri) { Rails.configuration.x.local_domain }
node(:title) { Setting.site_title }
node(:description) { Setting.site_description }
node(:email) { Setting.site_contact_email }

View file

@ -1,14 +0,0 @@
object false
node(:title) {Setting.site_title}
node(:max_chars) {500}
node(:links) do
{
t('about.learn_more') => url_for(about_more_url),
t('about.terms') => url_for(terms_url),
t('about.source_code') => "https://github.com/tootsuite/mastodon",
t('about.other_instances') => "https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md",
}
end