aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/twitter_api/views
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-03-28 09:56:32 +0200
committerlain <lain@soykaf.club>2018-03-28 09:56:32 +0200
commitdf8fc7249103fc1fdb574463201f02f4c99f9bec (patch)
treedfc197c583ec938a250460c8cc72c857820ffd52 /lib/pleroma/web/twitter_api/views
parente30752bc79d9e03a64c83a7990a7afdcb0176a07 (diff)
downloadpleroma-df8fc7249103fc1fdb574463201f02f4c99f9bec.tar.gz
Don't go through all available emoji.
object carry their emoji information.
Diffstat (limited to 'lib/pleroma/web/twitter_api/views')
-rw-r--r--lib/pleroma/web/twitter_api/views/activity_view.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex
index 76b8cb14b..ae5be60ce 100644
--- a/lib/pleroma/web/twitter_api/views/activity_view.ex
+++ b/lib/pleroma/web/twitter_api/views/activity_view.ex
@@ -37,7 +37,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
content
end
- html = HtmlSanitizeEx.basic_html(content) |> Formatter.emojify(object["emoji"])
+ html = HtmlSanitizeEx.basic_html(content)
+ |> Formatter.emojify(object["emoji"])
%{
"id" => activity.id,