Fix removed call to :crypto.hmac/3

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-18 17:13:19 +02:00
parent c1fd7d558d
commit df4b947c25
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -58,7 +58,7 @@ defmodule Mobilizon.Web.MediaProxy do
end end
defp signed_url(url) do defp signed_url(url) do
:crypto.hmac(:sha, Config.get([Web.Endpoint, :secret_key_base]), url) :crypto.mac(:hmac, :sha, Config.get([Web.Endpoint, :secret_key_base]), url)
end end
def filename(url_or_path) do def filename(url_or_path) do