aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-01-27 21:03:15 +0100
committerlain <lain@soykaf.club>2019-01-27 21:03:15 +0100
commit2e277dd4ad96ef6f7ce3267eb05d0b84668df772 (patch)
tree9ac9b8daef8251a98030ca8481c1e824aa135412 /test
parentaa8ddfdbe2303375e3f019faca30a620bfc58fc7 (diff)
downloadpleroma-2e277dd4ad96ef6f7ce3267eb05d0b84668df772.tar.gz
Fix objects.
Diffstat (limited to 'test')
-rw-r--r--test/spc_fixes_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/spc_fixes_test.exs b/test/spc_fixes_test.exs
index 76c081248..67ab54ccf 100644
--- a/test/spc_fixes_test.exs
+++ b/test/spc_fixes_test.exs
@@ -11,6 +11,7 @@ defmodule Pleroma.SpcFixesTest do
alias Pleroma.User
alias Pleroma.Activity
alias Pleroma.Repo
+ alias Pleroma.Object
import Pleroma.Factory
@@ -62,5 +63,10 @@ defmodule Pleroma.SpcFixesTest do
assert activity.data["actor"] == user.ap_id
assert user.follower_address in activity.recipients
assert user.follower_address in activity.data["to"]
+
+ object = Object.get_by_ap_id(activity.data["object"]["id"])
+
+ assert object.data["actor"] == user.ap_id
+ assert user.follower_address in object.data["to"]
end
end