diff options
author | eugenijm <eugenijm@protonmail.com> | 2020-04-12 22:54:43 +0300 |
---|---|---|
committer | eugenijm <eugenijm@protonmail.com> | 2020-05-21 04:41:42 +0300 |
commit | b7fc61e17b995e3aa4e52f85b91d320a1cd1e106 (patch) | |
tree | 2b361619e710819c511b986804e6e92ac8664c15 /lib/pleroma/helpers | |
parent | 42b06d78dfc9cec2a31bcb4676cc0135863ca97d (diff) | |
download | pleroma-b7fc61e17b995e3aa4e52f85b91d320a1cd1e106.tar.gz |
Added the ability to upload background, logo, default user avatar, instance thumbnail, and the NSFW hiding image via AdminFE
Diffstat (limited to 'lib/pleroma/helpers')
-rw-r--r-- | lib/pleroma/helpers/uri_helper.ex | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/helpers/uri_helper.ex b/lib/pleroma/helpers/uri_helper.ex index 256252ddb..69d8c8fe0 100644 --- a/lib/pleroma/helpers/uri_helper.ex +++ b/lib/pleroma/helpers/uri_helper.ex @@ -24,4 +24,7 @@ defmodule Pleroma.Helpers.UriHelper do params end end + + def maybe_add_base("/" <> uri, base), do: Path.join([base, uri]) + def maybe_add_base(uri, _base), do: uri end |