provide instance thumbnail at /api/v1/instance
authorHakaba Hitoyo <example@example.com>
Wed, 31 Jan 2018 13:51:25 +0000 (22:51 +0900)
committerHakaba Hitoyo <example@example.com>
Wed, 31 Jan 2018 13:51:25 +0000 (22:51 +0900)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
priv/static/instance-thumbnail.jpeg [new file with mode: 0644]

index 0615ac11a0ec26080f7396f3842d2352d6d64375..ce30453cb57de21994bdd25a9b83cc2b89858771 100644 (file)
@@ -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 (file)
index 0000000..b7e0126
Binary files /dev/null and b/priv/static/instance-thumbnail.jpeg differ