diff options
author | scarlett <nia@netbsd.org> | 2019-01-05 17:28:47 +0000 |
---|---|---|
committer | scarlett <nia@netbsd.org> | 2019-01-05 17:28:47 +0000 |
commit | 0787f0dfbe8daad53617217617fbc8784e45898f (patch) | |
tree | 4ba3e0cca79bfd763657051f82155608fcdbc9dd /lib/pleroma/web/common_api/common_api.ex | |
parent | eaaf701319cc3faf49ddcee359c796ec682886d8 (diff) | |
download | pleroma-0787f0dfbe8daad53617217617fbc8784e45898f.tar.gz |
Strip HTML in and allow emoji in summaries.
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index e474653ff..a20b854df 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -124,7 +124,7 @@ defmodule Pleroma.Web.CommonAPI do Map.put( object, "emoji", - Formatter.get_emoji(status) + Formatter.get_emoji(status) ++ Formatter.get_emoji(data["spoiler_text"]) |> Enum.reduce(%{}, fn {name, file}, acc -> Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url()}#{file}") end) |