Workaround for URI.merge/2 bug https://github.com/elixir-lang/elixir/issues/10771
authorMark Felder <feld@feld.me>
Sat, 6 Mar 2021 18:02:32 +0000 (12:02 -0600)
committerMark Felder <feld@feld.me>
Wed, 10 Mar 2021 23:15:31 +0000 (17:15 -0600)
commit8246db2a968943a0cab615b8b5c1439aa4cb2547
treeab54ac051072ef7e77b8d598528f254f90cfe762
parent8e09a3cfa05d96bb7a981207f3086203601f57a2
Workaround for URI.merge/2 bug https://github.com/elixir-lang/elixir/issues/10771

If we avoid URI.merge unless we know we need it we reduce the edge cases we could encounter.
The site would need to both have "//" in the %URI{:path} and the image needs to be a relative URL.
lib/pleroma/web/mastodon_api/views/status_view.ex