Add an API endpoint for emoji.

This commit is contained in:
eal 2017-10-19 22:51:56 +03:00
commit fe7804e42d
3 changed files with 14 additions and 3 deletions

View file

@ -122,4 +122,9 @@ defmodule Pleroma.Formatter do
def get_emoji(text) do
Enum.filter(@emoji, fn ({emoji, _}) -> String.contains?(text, ":#{emoji}:") end)
end
def get_custom_emoji() do
@emoji
|> Enum.into %{}
end
end