diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2020-05-18 11:56:27 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2020-05-18 11:56:27 +0300 |
commit | 01bd6a1e54c8734e8965f153a9406cecc07950f3 (patch) | |
tree | 791348626f54b390167693da8c1a6481c54d78de /lib/pleroma/upload.ex | |
parent | 8a383707ae143ba47fa1ba68da20bc6bec425126 (diff) | |
parent | 1199cf3a788334cd3fdb968d9f736e43c1401da1 (diff) | |
download | pleroma-01bd6a1e54c8734e8965f153a9406cecc07950f3.tar.gz |
Merge branch 'develop' into feature/admin-api-status-count-per-instance
Diffstat (limited to 'lib/pleroma/upload.ex')
-rw-r--r-- | lib/pleroma/upload.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex index 762d813d9..1be1a3a5b 100644 --- a/lib/pleroma/upload.ex +++ b/lib/pleroma/upload.ex @@ -134,7 +134,7 @@ defmodule Pleroma.Upload do end end - defp prepare_upload(%{"img" => "data:image/" <> image_data}, opts) do + defp prepare_upload(%{img: "data:image/" <> image_data}, opts) do parsed = Regex.named_captures(~r/(?<filetype>jpeg|png|gif);base64,(?<data>.*)/, image_data) data = Base.decode64!(parsed["data"], ignore: :whitespace) hash = String.downcase(Base.encode16(:crypto.hash(:sha256, data))) |