diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-04-07 22:27:16 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-04-07 17:29:28 -0500 |
commit | 1857f403bea8d16f95a3b1ae46e07e2acd807c3c (patch) | |
tree | 849d35607a85979291dfe5fdc5a77e6492060569 /lib | |
parent | 52a1a40d7da25d35204f884e6a0ea24cbab932ef (diff) | |
download | pleroma-1857f403bea8d16f95a3b1ae46e07e2acd807c3c.tar.gz |
mastodon api: report version as the Mastodon API version supported with the real version in parenthesis
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 6339704a2..f1cb6ec9d 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -102,13 +102,14 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do end @instance Application.get_env(:pleroma, :instance) + @mastodon_api_level "2.3.3" def masto_instance(conn, _params) do response = %{ uri: Web.base_url(), title: Keyword.get(@instance, :name), description: "A Pleroma instance, an alternative fediverse server", - version: Keyword.get(@instance, :version), + version: "#{@mastodon_api_level} (compatible; #{Keyword.get(@instance, :version)})", email: Keyword.get(@instance, :email), urls: %{ streaming_api: String.replace(Web.base_url(), ["http", "https"], "wss") |