projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a5d9b
)
Remove misleading is_ prefix from boolean function
author
Mark Felder
<feld@FreeBSD.org>
Wed, 17 Jun 2020 18:02:01 +0000
(13:02 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Wed, 17 Jun 2020 18:02:01 +0000
(13:02 -0500)
lib/pleroma/web/media_proxy/media_proxy.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/media_proxy/media_proxy.ex
b/lib/pleroma/web/media_proxy/media_proxy.ex
index 59ca217abac98a3801777c99fdcea78e109fd399..3dccd6b7f02337409cdad85bbfd700b8df7a3730 100644
(file)
--- a/
lib/pleroma/web/media_proxy/media_proxy.ex
+++ b/
lib/pleroma/web/media_proxy/media_proxy.ex
@@
-37,15
+37,15
@@
defmodule Pleroma.Web.MediaProxy do
def url("/" <> _ = url), do: url
def url(url) do
- if disabled?() or not
is_
url_proxiable?(url) do
+ if disabled?() or not url_proxiable?(url) do
url
else
encode_url(url)
end
end
- @spec
is_
url_proxiable?(String.t()) :: boolean()
- def
is_
url_proxiable?(url) do
+ @spec url_proxiable?(String.t()) :: boolean()
+ def url_proxiable?(url) do
if local?(url) or whitelisted?(url) do
false
else