mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
8 lines
292 B
Elixir
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
|