media_proxy: switch from :crypto.hmac to :crypto.mac

This commit is contained in:
Haelwenn (lanodan) Monnier 2021-05-15 13:15:02 +02:00
parent 166455c884
commit 168687eef2
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

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