Standardize construction of websocket URL
This follows up on the change made in d747bd98
This commit is contained in:
parent
497d34b825
commit
acb04306b6
2 changed files with 2 additions and 3 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue