aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-05-03 11:45:04 +0000
committerlambda <lain@soykaf.club>2019-05-03 11:45:04 +0000
commit027ded0df799266d74d9680bd7ef24450efc910f (patch)
tree3276a0b8e266dda40b0f000a1b618ba6cd53d84f /lib/pleroma/web
parent497d34b825bd3600b2067a8c47e29f41234fa315 (diff)
parentacb04306b6954aac8d66a74438d0e213d93a9046 (diff)
downloadpleroma-027ded0df799266d74d9680bd7ef24450efc910f.tar.gz
Merge branch 'fix/replace-ws' into 'develop'
Standardize construction of websocket URL See merge request pleroma/pleroma!1115
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index ed585098a..201a21f50 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -1295,8 +1295,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
initial_state =
%{
meta: %{
- streaming_api_base_url:
- String.replace(Pleroma.Web.Endpoint.static_url(), "http", "ws"),
+ streaming_api_base_url: Pleroma.Web.Endpoint.websocket_url(),
access_token: token,
locale: "en",
domain: Pleroma.Web.Endpoint.host(),