projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add account confirmation email resend in mastodon api
[akkoma]
/
lib
/
pleroma
/
emoji.ex
diff --git
a/lib/pleroma/emoji.ex
b/lib/pleroma/emoji.ex
index 854d46b1ad239fcd701d33913c537542d8052bce..05250164227e0d9e589d15f49527f19eff82d3ae 100644
(file)
--- a/
lib/pleroma/emoji.ex
+++ b/
lib/pleroma/emoji.ex
@@
-148,11
+148,13
@@
defmodule Pleroma.Emoji do
if File.exists?(emoji_txt) do
load_from_file(emoji_txt, emoji_groups)
else
if File.exists?(emoji_txt) do
load_from_file(emoji_txt, emoji_groups)
else
+ extensions = Pleroma.Config.get([:emoji, :pack_extensions])
+
Logger.info(
Logger.info(
- "No emoji.txt found for pack \"#{pack_name}\", assuming all
.png
files are emoji"
+ "No emoji.txt found for pack \"#{pack_name}\", assuming all
#{Enum.join(extensions, ", ")}
files are emoji"
)
)
- make_shortcode_to_file_map(pack_dir,
[".png"]
)
+ make_shortcode_to_file_map(pack_dir,
extensions
)
|> Enum.map(fn {shortcode, rel_file} ->
filename = Path.join("/emoji/#{pack_name}", rel_file)
|> Enum.map(fn {shortcode, rel_file} ->
filename = Path.join("/emoji/#{pack_name}", rel_file)