philomena/lib/camo/image.ex
2021-09-29 22:09:21 -04:00

8 lines
292 B
Elixir

defmodule Camo.Image do
@doc """
Convert a potentially untrusted external image URL into a trusted one
loaded through a gocamo proxy (specified by the environment).
"""
@spec image_url(String.t()) :: String.t()
def image_url(input), do: Philomena.Native.camo_image_url(input)
end