aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-11 11:48:58 +0200
committerlain <lain@soykaf.club>2019-10-11 11:48:58 +0200
commit37812740c4c03f0a79d17ff186db644a60414ff7 (patch)
tree4b71514e26cad1f0d7255b20830871419034abb3 /test
parent9b963064eb4c8cb740ffa128f491f2ee581fdb8b (diff)
downloadpleroma-37812740c4c03f0a79d17ff186db644a60414ff7.tar.gz
Transmogrifier: Correctly save incoming ids for Accept/Reject.
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index 9f98ec708..6c35a6f4d 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -909,6 +909,8 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert activity.data["object"] == follow_activity.data["id"]
+ assert activity.data["id"] == accept_data["id"]
+
follower = User.get_cached_by_id(follower.id)
assert User.following?(follower, followed) == true
@@ -1013,6 +1015,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
{:ok, activity} = Transmogrifier.handle_incoming(reject_data)
refute activity.local
+ assert activity.data["id"] == reject_data["id"]
follower = User.get_cached_by_id(follower.id)