Merge branch 'develop' into issue/1383

This commit is contained in:
Maksim Pechnikov 2020-01-22 20:20:39 +03:00
commit cf19bf3c7c
485 changed files with 5044 additions and 1888 deletions

View file

@ -255,12 +255,11 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
emoji_reactions =
with %{data: %{"reactions" => emoji_reactions}} <- object do
Enum.map(emoji_reactions, fn {emoji, users} ->
{emoji, length(users)}
Enum.map(emoji_reactions, fn [emoji, users] ->
[emoji, length(users)]
end)
|> Enum.into(%{})
else
_ -> %{}
_ -> []
end
%{