summaryrefslogtreecommitdiff
path: root/test/web/common_api
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-05 16:17:09 +0200
committerlain <lain@soykaf.club>2020-05-05 16:17:09 +0200
commitb34debe61540cf845ccf4ac93066e45a1d9c8f85 (patch)
tree3be3d2e9e0d608f749188f9c9ae51e5f815c3106 /test/web/common_api
parenta3071f023166cb5364ce56e3666d5a77baa16434 (diff)
downloadpleroma-b34debe61540cf845ccf4ac93066e45a1d9c8f85.tar.gz
pleroma-b34debe61540cf845ccf4ac93066e45a1d9c8f85.zip
Undoing: Move undoing reactions to the pipeline everywhere.
Diffstat (limited to 'test/web/common_api')
-rw-r--r--test/web/common_api/common_api_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index bc0c1a791..0664b7f90 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -295,10 +295,11 @@ defmodule Pleroma.Web.CommonAPITest do
{:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"})
{:ok, reaction, _} = CommonAPI.react_with_emoji(activity.id, user, "👍")
- {:ok, unreaction, _} = CommonAPI.unreact_with_emoji(activity.id, user, "👍")
+ {:ok, unreaction} = CommonAPI.unreact_with_emoji(activity.id, user, "👍")
assert unreaction.data["type"] == "Undo"
assert unreaction.data["object"] == reaction.data["id"]
+ assert unreaction.local
end
test "repeating a status" do