Use String.replace_leading instead of String.replace for getting websocket streaming...
authoreugenijm <eugenijm@protonmail.com>
Fri, 1 Feb 2019 18:56:18 +0000 (21:56 +0300)
committereugenijm <eugenijm@protonmail.com>
Fri, 1 Feb 2019 18:58:43 +0000 (21:58 +0300)
commitd747bd98700dd8b015ef48e8a2a1df0025012b0a
tree33e96d85f882c0a4d4a0e0d9ed859dabca3167b6
parent389e6a878a7636c29f57cb4603abd33f4cca98d9
Use String.replace_leading instead of String.replace for getting websocket streaming api url.

Extract the login responsible for obtaining websocket URL into the corresponding
Endpoint function.
lib/pleroma/web/endpoint.ex
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex