summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-07 14:28:10 +0000
committerrinpatch <rinpatch@sdf.org>2020-05-07 14:28:10 +0000
commitbef08b85e5e1e25b65851938d6152bf0c170af03 (patch)
treec40fae753b4791bf1feaa98b33822221db8f2a59 /test/web/common_api/common_api_test.exs
parent516ff945cedbfae774f4c8272264a4cf0e453130 (diff)
parentd11eea62b139ce16d7dffbd574947b2550df238f (diff)
downloadpleroma-bef08b85e5e1e25b65851938d6152bf0c170af03.tar.gz
pleroma-bef08b85e5e1e25b65851938d6152bf0c170af03.zip
Merge branch 'feature/undo-validator-reduced' into 'develop'
Move Undo (except undo follow) to the common pipeline See merge request pleroma/pleroma!2489
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-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 62a2665b6..9a37d1887 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -375,10 +375,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