projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
report chat and gopher support at /nodeinfo/2.0.json
[akkoma]
/
lib
/
pleroma
/
formatter.ex
diff --git
a/lib/pleroma/formatter.ex
b/lib/pleroma/formatter.ex
index 9be54e86358946644fd5e984671836982c38a4ab..2b4c3c2aa561374c6fff3afdf0c819f5eb1f31bb 100644
(file)
--- a/
lib/pleroma/formatter.ex
+++ b/
lib/pleroma/formatter.ex
@@
-158,10
+158,12
@@
defmodule Pleroma.Formatter do
end)
end
- def get_emoji(text) do
+ def get_emoji(text)
when is_binary(text)
do
Enum.filter(@emoji, fn {emoji, _} -> String.contains?(text, ":#{emoji}:") end)
end
+ def get_emoji(_), do: []
+
def get_custom_emoji() do
@emoji
end