logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 96add86b509da93e0069fc89ebb8474d4ac2c6fd
parent: c464355d1ac7f9558aa50f7038035b9a47614822
Author: lain <lain@soykaf.club>
Date:   Sat,  5 May 2018 13:40:31 +0200

Unify wss uri generation.

Diffstat:

Mlib/pleroma/web/mastodon_api/mastodon_api_controller.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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",