diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-07 14:28:10 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-07 14:28:10 +0000 |
commit | bef08b85e5e1e25b65851938d6152bf0c170af03 (patch) | |
tree | c40fae753b4791bf1feaa98b33822221db8f2a59 /test/web/activity_pub/utils_test.exs | |
parent | 516ff945cedbfae774f4c8272264a4cf0e453130 (diff) | |
parent | d11eea62b139ce16d7dffbd574947b2550df238f (diff) | |
download | pleroma-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/activity_pub/utils_test.exs')
-rw-r--r-- | test/web/activity_pub/utils_test.exs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/web/activity_pub/utils_test.exs b/test/web/activity_pub/utils_test.exs index b0bfed917..b8d811c73 100644 --- a/test/web/activity_pub/utils_test.exs +++ b/test/web/activity_pub/utils_test.exs @@ -102,34 +102,6 @@ defmodule Pleroma.Web.ActivityPub.UtilsTest do end end - describe "make_unlike_data/3" do - test "returns data for unlike activity" do - user = insert(:user) - like_activity = insert(:like_activity, data_attrs: %{"context" => "test context"}) - - object = Object.normalize(like_activity.data["object"]) - - assert Utils.make_unlike_data(user, like_activity, nil) == %{ - "type" => "Undo", - "actor" => user.ap_id, - "object" => like_activity.data, - "to" => [user.follower_address, object.data["actor"]], - "cc" => [Pleroma.Constants.as_public()], - "context" => like_activity.data["context"] - } - - assert Utils.make_unlike_data(user, like_activity, "9mJEZK0tky1w2xD2vY") == %{ - "type" => "Undo", - "actor" => user.ap_id, - "object" => like_activity.data, - "to" => [user.follower_address, object.data["actor"]], - "cc" => [Pleroma.Constants.as_public()], - "context" => like_activity.data["context"], - "id" => "9mJEZK0tky1w2xD2vY" - } - end - end - describe "make_like_data" do setup do user = insert(:user) |