From a184811a605a56436cc5b9eae8ef5c3834285922 Mon Sep 17 00:00:00 2001
From: eugenijm <eugenijm@protonmail.com>
Date: Fri, 1 Feb 2019 22:35:19 +0300
Subject: [PATCH] Use url() instead of static_url in Endpoint.websocket_url()

---
 lib/pleroma/web/endpoint.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index ebbc5d7b5..3eed047ca 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -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