mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-09 09:52:13 +00:00
media_proxy: switch from :crypto.hmac to :crypto.mac
This commit is contained in:
parent
166455c884
commit
168687eef2
|
@ -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