Emoji reactions: Change api format once more

This commit is contained in:
lain 2020-01-24 10:52:24 +01:00
commit 347f3ed2c6
4 changed files with 12 additions and 4 deletions

View file

@ -71,7 +71,7 @@ defmodule Pleroma.Web.PleromaAPI.PleromaAPIControllerTest do
|> get("/api/v1/pleroma/statuses/#{activity.id}/emoji_reactions_by")
|> json_response(200)
[["🎅", [represented_user]]] = result
[%{"emoji" => "🎅", "count" => 1, "accounts" => [represented_user]}] = result
assert represented_user["id"] == other_user.id
end