philomena/lib/camo/image.ex

9 lines
292 B
Elixir
Raw Normal View History

2019-11-11 00:35:52 +01:00
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()
2021-09-13 20:54:57 +02:00
def image_url(input), do: Philomena.Native.camo_image_url(input)
2020-01-11 05:20:19 +01:00
end