Fix minor spelling error
authorMark Felder <feld@FreeBSD.org>
Wed, 27 May 2020 19:34:37 +0000 (14:34 -0500)
committerMark Felder <feld@FreeBSD.org>
Wed, 27 May 2020 19:34:37 +0000 (14:34 -0500)
lib/pleroma/emoji/pack.ex
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex

index eb7d598c6707661e085ae5fb58671f667cde64a3..14a5185be801834aa55fe23c24965e34d13e63e5 100644 (file)
@@ -499,7 +499,7 @@ defmodule Pleroma.Emoji.Pack do
       if Base.decode16!(sha) == :crypto.hash(:sha256, archive) do
         {:ok, archive}
       else
-        {:error, :imvalid_checksum}
+        {:error, :invalid_checksum}
       end
     end
   end
index 2c53dcde133269010a6f52c0daf575568e925fde..d1efdeb5d8db98d8cb2c979668d83b7d6441b24d 100644 (file)
@@ -106,7 +106,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiPackController do
         |> put_status(:internal_server_error)
         |> json(%{error: "The requested instance does not support sharing emoji packs"})
 
-      {:error, :imvalid_checksum} ->
+      {:error, :invalid_checksum} ->
         conn
         |> put_status(:internal_server_error)
         |> json(%{error: "SHA256 for the pack doesn't match the one sent by the server"})