projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8cef70
)
Use URI.merge to prevent concatenating two canonical URLs when a custom instance...
author
Mark Felder
<feld@feld.me>
Fri, 9 Apr 2021 15:30:27 +0000
(10:30 -0500)
committer
Mark Felder
<feld@feld.me>
Fri, 9 Apr 2021 15:30:27 +0000
(10:30 -0500)
lib/pleroma/web/mastodon_api/views/instance_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/views/instance_view.ex
b/lib/pleroma/web/mastodon_api/views/instance_view.ex
index 73205fb6db500e31205bffc3d278b4da15b6620b..dac68d8e606899a8926bc42c46ce563e5dc8a215 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/instance_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/instance_view.ex
@@
-23,7
+23,8
@@
defmodule Pleroma.Web.MastodonAPI.InstanceView do
streaming_api: Pleroma.Web.Endpoint.websocket_url()
},
stats: Pleroma.Stats.get_stats(),
- thumbnail: Pleroma.Web.base_url() <> Keyword.get(instance, :instance_thumbnail),
+ thumbnail:
+ URI.merge(Pleroma.Web.base_url(), Keyword.get(instance, :instance_thumbnail)) |> to_string,
languages: ["en"],
registrations: Keyword.get(instance, :registrations_open),
approval_required: Keyword.get(instance, :account_approval_required),