Make emoji default_manifest a config option
authorEkaterina Vaartis <vaartis@cock.li>
Thu, 18 Apr 2019 17:48:57 +0000 (20:48 +0300)
committerEkaterina Vaartis <vaartis@cock.li>
Sat, 20 Apr 2019 08:17:17 +0000 (11:17 +0300)
config/config.exs
lib/mix/tasks/pleroma/emoji.ex

index edb4195d087cbe8d99718b2389f4ba37069b881e..fcad55bbedd43c5244f8b972aa8086eada8e82db 100644 (file)
@@ -102,7 +102,8 @@ config :pleroma, :emoji,
     # Put groups that have higher priority than defaults here. Example in `docs/config/custom_emoji.md`
     Finmoji: ["/finmoji/128px/*-128.png"],
     Custom: ["/emoji/*.png", "/emoji/custom/*.png"]
-  ]
+  ],
+  default_manifest: "https://git.pleroma.social/vaartis/emoji-index/raw/master/index.json"
 
 config :pleroma, :uri_schemes,
   valid_schemes: [
index 9cb6fb88dddab1a58bf00823884bfafa3f486f44..8261c2122d9dc3df1febc67eeb85974d9175ac6d 100644 (file)
@@ -9,7 +9,7 @@ defmodule Mix.Tasks.Pleroma.Emoji do
   @moduledoc """
   """
 
-  @default_manifest "https://git.pleroma.social/vaartis/emoji-index/raw/master/index.json"
+  @default_manifest Pleroma.Config.get!([:emoji, :default_manifest])
 
   def run(["ls-packs" | args]) do
     Application.ensure_all_started(:hackney)