projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed legacy api: "/objects/:uuid/likes"
[akkoma]
/
test
/
web
/
activity_pub
/
activity_pub_test.exs
diff --git
a/test/web/activity_pub/activity_pub_test.exs
b/test/web/activity_pub/activity_pub_test.exs
index f294978473066185874760cf4ad4ee78a5c818d5..c9f2a92e78a8298afa58b96a065f9527487355b3 100644
(file)
--- a/
test/web/activity_pub/activity_pub_test.exs
+++ b/
test/web/activity_pub/activity_pub_test.exs
@@
-811,10
+811,11
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
{:ok, like_activity, object} = ActivityPub.like(user, object)
assert object.data["like_count"] == 1
{:ok, like_activity, object} = ActivityPub.like(user, object)
assert object.data["like_count"] == 1
- {:ok,
_
, _, object} = ActivityPub.unlike(user, object)
+ {:ok,
unlike_activity
, _, object} = ActivityPub.unlike(user, object)
assert object.data["like_count"] == 0
assert Activity.get_by_id(like_activity.id) == nil
assert object.data["like_count"] == 0
assert Activity.get_by_id(like_activity.id) == nil
+ assert note_activity.actor in unlike_activity.recipients
end
end
end
end
@@
-890,7
+891,7
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
assert unannounce_activity.data["to"] == [
User.ap_followers(user),
assert unannounce_activity.data["to"] == [
User.ap_followers(user),
-
announce_activity
.data["actor"]
+
object
.data["actor"]
]
assert unannounce_activity.data["type"] == "Undo"
]
assert unannounce_activity.data["type"] == "Undo"