diff options
author | rinpatch <rinpatch@sdf.org> | 2019-03-25 09:24:08 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-03-25 09:24:08 +0000 |
commit | b028b0f97d4b6310b1402b3b876aa8f8b286bc4d (patch) | |
tree | eb2bbd4a455eb6cccf9fb2d7398d6aa094783c9f /test | |
parent | bc14c98de115d8695d3436d1f093f4c161ceb3b2 (diff) | |
parent | 26b0c802c3eece72928d0425826af9fe728a5173 (diff) | |
download | pleroma-b028b0f97d4b6310b1402b3b876aa8f8b286bc4d.tar.gz |
Merge branch 'bugfix/missing-announces' into 'develop'
fix up missing announcements with preloads
See merge request pleroma/pleroma!972
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index c8c3b6d5f..96ad64e62 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -365,6 +365,20 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do assert Enum.member?(activities, activity_one) end + test "does include announces on request" do + activity_three = insert(:note_activity) + user = insert(:user) + booster = insert(:user) + + {:ok, user} = User.follow(user, booster) + + {:ok, announce, _object} = CommonAPI.repeat(activity_three.id, booster) + + [announce_activity] = ActivityPub.fetch_activities([user.ap_id | user.following]) + + assert announce_activity.id == announce.id + end + test "excludes reblogs on request" do user = insert(:user) {:ok, expected_activity} = ActivityBuilder.insert(%{"type" => "Create"}, %{:user => user}) |