diff options
author | lain <lain@soykaf.club> | 2018-05-05 13:40:31 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-05-05 13:40:31 +0200 |
commit | 96add86b509da93e0069fc89ebb8474d4ac2c6fd (patch) | |
tree | ef3c781154eb4da88042744c51cbe09b4b9f3815 /lib | |
parent | c464355d1ac7f9558aa50f7038035b9a47614822 (diff) | |
download | pleroma-96add86b509da93e0069fc89ebb8474d4ac2c6fd.tar.gz |
Unify wss uri generation.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 2 |
1 files changed, 1 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 2b4e9e72b..b77c9fc02 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -112,7 +112,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do 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") + streaming_api: String.replace(Pleroma.Web.Endpoint.static_url(), "http", "ws") }, stats: Stats.get_stats(), thumbnail: Web.base_url() <> "/instance/thumbnail.jpeg", |