Merge branch 'develop' into issue/1276

This commit is contained in:
Maksim Pechnikov 2020-02-13 09:20:34 +03:00
commit da44ee5b0f
103 changed files with 396 additions and 101 deletions

View file

@ -242,9 +242,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
with %{data: %{"reactions" => emoji_reactions}} <- object do
Enum.map(emoji_reactions, fn [emoji, users] ->
%{
emoji: emoji,
name: emoji,
count: length(users),
reacted: !!(opts[:for] && opts[:for].ap_id in users)
me: !!(opts[:for] && opts[:for].ap_id in users)
}
end)
else