Add finmoji.

This commit is contained in:
Roger Braun 2017-06-19 17:51:43 +02:00
commit 66b4fee80e
131 changed files with 83 additions and 1 deletions

View file

@ -43,4 +43,12 @@ defmodule Pleroma.FormatterTest do
assert Formatter.parse_mentions(text) == expected_result
end
test "it adds cool emoji" do
text = "I love :moominmamma:"
expected_result = "I love <img height='32px' width='32px' alt='moominmamma' title='moominmamma' src='#{Pleroma.Web.Endpoint.static_url}/finmoji/128px/moominmamma-128.png' />"
assert Formatter.finmojifiy(text) == expected_result
end
end