Use url() instead of static_url in Endpoint.websocket_url()
authoreugenijm <eugenijm@protonmail.com>
Fri, 1 Feb 2019 19:35:19 +0000 (22:35 +0300)
committereugenijm <eugenijm@protonmail.com>
Fri, 1 Feb 2019 19:35:19 +0000 (22:35 +0300)
lib/pleroma/web/endpoint.ex

index ebbc5d7b5ec48becc65ad8ddac08a1c4aa0b3277..3eed047ca9503352b7d214867e0669417f62aceb 100644 (file)
@@ -84,6 +84,6 @@ defmodule Pleroma.Web.Endpoint do
   end
 
   def websocket_url do
-    String.replace_leading(static_url(), "http", "ws")
+    String.replace_leading(url(), "http", "ws")
   end
 end