mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
media_proxy: switch from :crypto.hmac to :crypto.mac
This commit is contained in:
parent
166455c884
commit
168687eef2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue