From: Hakaba Hitoyo Date: Wed, 31 Jan 2018 13:51:25 +0000 (+0900) Subject: provide instance thumbnail at /api/v1/instance X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a4335e391f6818b9ea09520f60ca8c436d643f38;p=akkoma provide instance thumbnail at /api/v1/instance --- 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) } diff --git a/priv/static/instance-thumbnail.jpeg b/priv/static/instance-thumbnail.jpeg new file mode 100644 index 000000000..b7e012644 Binary files /dev/null and b/priv/static/instance-thumbnail.jpeg differ