aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-02-03 13:05:20 +0000
committerlambda <pleromagit@rogerbraun.net>2018-02-03 13:05:20 +0000
commit61c16193decca80c4021039a674edb77c7bf6158 (patch)
treea3b7b01400f4981f3d49cf77f207f4ab0d296422 /lib
parent9a9766d6489024fb725197af1461944252aae9ed (diff)
parentc8a29315495190c27f86b7331aa18c24e8fe9fcc (diff)
downloadpleroma-61c16193decca80c4021039a674edb77c7bf6158.tar.gz
Merge branch 'move-backend-images' into 'develop'
Move avi.png & banner.png from /priv/static/static to /priv/static/images See merge request pleroma/pleroma!60
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/user.ex4
-rw-r--r--lib/pleroma/web/endpoint.ex2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index 6ba2b165c..81cec8265 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -29,14 +29,14 @@ defmodule Pleroma.User do
def avatar_url(user) do
case user.avatar do
%{"url" => [%{"href" => href} | _]} -> href
- _ -> "#{Web.base_url()}/static/avi.png"
+ _ -> "#{Web.base_url()}/images/avi.png"
end
end
def banner_url(user) do
case user.info["banner"] do
%{"url" => [%{"href" => href} | _]} -> href
- _ -> "#{Web.base_url()}/static/banner.png"
+ _ -> "#{Web.base_url()}/images/banner.png"
end
end
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index 725d2ee64..ec88df692 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -12,7 +12,7 @@ defmodule Pleroma.Web.Endpoint do
at: "/media", from: "uploads", gzip: false
plug Plug.Static,
at: "/", from: :pleroma,
- only: ~w(index.html static finmoji emoji packs sounds instance sw.js)
+ only: ~w(index.html static finmoji emoji packs sounds images instance sw.js)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.