projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Short circuit user verification if cookie is present.
[akkoma]
/
lib
/
pleroma
/
upload.ex
diff --git
a/lib/pleroma/upload.ex
b/lib/pleroma/upload.ex
index 43ebe98e3d709288b572ead2b035c404fa262ff4..158656e92ea117674aadabe89fd149aeeb9a02e0 100644
(file)
--- a/
lib/pleroma/upload.ex
+++ b/
lib/pleroma/upload.ex
@@
-20,11
+20,6
@@
defmodule Pleroma.Upload do
end
defp url_for(file) do
- host =
- Application.get_env(:pleroma, Pleroma.Web.Endpoint)
- |> Keyword.fetch!(:url)
- |> Keyword.fetch!(:host)
-
- "https://#{host}/media/#{file}"
+ "#{Pleroma.Web.base_url()}/media/#{file}"
end
end