projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'openapi/markers' into 'develop'
[akkoma]
/
test
/
web
/
activity_pub
/
utils_test.exs
diff --git
a/test/web/activity_pub/utils_test.exs
b/test/web/activity_pub/utils_test.exs
index e913a5148a3ac6bcfb730581e5fbbf9a1f514575..b0bfed9178a53cba7a5f034cbe0cc1060d4f487e 100644
(file)
--- a/
test/web/activity_pub/utils_test.exs
+++ b/
test/web/activity_pub/utils_test.exs
@@
-224,8
+224,7
@@
defmodule Pleroma.Web.ActivityPub.UtilsTest do
object = Object.normalize(activity)
{:ok, [vote], object} = CommonAPI.vote(other_user, object, [0])
object = Object.normalize(activity)
{:ok, [vote], object} = CommonAPI.vote(other_user, object, [0])
- vote_object = Object.normalize(vote)
- {:ok, _activity, _object} = ActivityPub.like(user, vote_object)
+ {:ok, _activity} = CommonAPI.favorite(user, activity.id)
[fetched_vote] = Utils.get_existing_votes(other_user.ap_id, object)
assert fetched_vote.id == vote.id
end
[fetched_vote] = Utils.get_existing_votes(other_user.ap_id, object)
assert fetched_vote.id == vote.id
end
@@
-346,7
+345,7
@@
defmodule Pleroma.Web.ActivityPub.UtilsTest do
user = insert(:user)
refute Utils.get_existing_like(user.ap_id, object)
user = insert(:user)
refute Utils.get_existing_like(user.ap_id, object)
- {:ok, like_activity
, _object} = ActivityPub.like(user, object
)
+ {:ok, like_activity
} = CommonAPI.favorite(user, note_activity.id
)
assert ^like_activity = Utils.get_existing_like(user.ap_id, object)
end
assert ^like_activity = Utils.get_existing_like(user.ap_id, object)
end