diff options
| author | Ekaterina Vaartis <vaartis@cock.li> | 2019-08-12 17:35:25 +0300 | 
|---|---|---|
| committer | Ekaterina Vaartis <vaartis@cock.li> | 2019-09-19 00:16:33 +0300 | 
| commit | 3a8669b48771ac4203b6abf2a372c6960d36345a (patch) | |
| tree | 91c7e6585a52a54cdf367f1f72115a12dddee845 | |
| parent | 7a0c755d0a69157868e245b35b48ed07a7dfd3c7 (diff) | |
| download | pleroma-3a8669b48771ac4203b6abf2a372c6960d36345a.tar.gz pleroma-3a8669b48771ac4203b6abf2a372c6960d36345a.zip | |
Fix responses for emoji pack controlller
| -rw-r--r-- | lib/pleroma/web/emoji_api/emoji_api_controller.ex | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lib/pleroma/web/emoji_api/emoji_api_controller.ex b/lib/pleroma/web/emoji_api/emoji_api_controller.ex index 72daccc8c..f2b1e8a8d 100644 --- a/lib/pleroma/web/emoji_api/emoji_api_controller.ex +++ b/lib/pleroma/web/emoji_api/emoji_api_controller.ex @@ -88,7 +88,7 @@ defmodule Pleroma.Web.EmojiAPI.EmojiAPIController do        ttl: cache_ms      ) -    Logger.debug("Create an archive for the '#{name}' shared emoji pack, \ +    Logger.debug("Create an archive for the '#{name}' emoji pack, \  keeping it in cache for #{div(cache_ms, 1000)}s")      zip_result @@ -132,14 +132,14 @@ keeping it in cache for #{div(cache_ms, 1000)}s")          {:error,           conn           |> put_status(:forbidden) -         |> json("Pack #{name} cannot be downloaded from this instance, either pack sharing\ +         |> text("Pack #{name} cannot be downloaded from this instance, either pack sharing\             was disabled for this pack or some files are missing")}        end      else        {:error,         conn         |> put_status(:not_found) -       |> json("Pack #{name} does not exist")} +       |> text("Pack #{name} does not exist")}      end    end @@ -169,7 +169,7 @@ keeping it in cache for #{div(cache_ms, 1000)}s")             }}          true -> -          {:error, "The pack was not set as shared and the is no fallback url to download from"} +          {:error, "The pack was not set as shared and there is no fallback src to download from"}        end      case pack_info_res do | 
