1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-24 05:35:17 +01:00

Remove misleading is_ prefix from boolean function

This commit is contained in:
Mark Felder 2020-06-17 13:02:01 -05:00
parent 71a5d9bffb
commit c08c9db0c1

View File

@ -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