aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHakaba Hitoyo <example@example.com>2018-01-31 22:51:25 +0900
committerHakaba Hitoyo <example@example.com>2018-01-31 22:51:25 +0900
commita4335e391f6818b9ea09520f60ca8c436d643f38 (patch)
tree6b4bb4211b10a899b6cfe27f87681f5955e7bdf4 /lib
parent5e37adedfb718264fbc3eb3353ccee5244e82a89 (diff)
downloadpleroma-a4335e391f6818b9ea09520f60ca8c436d643f38.tar.gz
provide instance thumbnail at /api/v1/instance
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 0615ac11a..ce30453cb 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -103,6 +103,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
streaming_api: String.replace(Web.base_url, ["http","https"], "wss")
},
stats: Stats.get_stats,
+ thumbnail: Web.base_url <> "/static/instance-thumbnail.jpeg",
max_toot_chars: Keyword.get(@instance, :limit)
}