diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-04-22 15:31:51 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-04-22 15:31:51 +0000 |
commit | 238058ecaed4ed5102b610d423247e3f4000f26b (patch) | |
tree | 59953b98295df6e3fb989ae8740b6b8a2b0d9c17 /test/user_test.exs | |
parent | 1855c597c248af0abe8590bec92fd338e53801de (diff) | |
parent | 7a3a88a13ef526fba18bb6aeadc93f5da934dc5b (diff) | |
download | pleroma-238058ecaed4ed5102b610d423247e3f4000f26b.tar.gz pleroma-238058ecaed4ed5102b610d423247e3f4000f26b.zip |
Merge branch 'bugfix/1543-streaming-boosts' into 'develop'
Streamer: Stream boosts to the boosting user.
Closes #1543
See merge request pleroma/pleroma!2415
Diffstat (limited to 'test/user_test.exs')
-rw-r--r-- | test/user_test.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/user_test.exs b/test/user_test.exs index 65e118d6d..cd4041673 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -987,6 +987,18 @@ defmodule Pleroma.UserTest do end describe "get_recipients_from_activity" do + test "works for announces" do + actor = insert(:user) + user = insert(:user, local: true) + + {:ok, activity} = CommonAPI.post(actor, %{"status" => "hello"}) + {:ok, announce, _} = CommonAPI.repeat(activity.id, user) + + recipients = User.get_recipients_from_activity(announce) + + assert user in recipients + end + test "get recipients" do actor = insert(:user) user = insert(:user, local: true) |