diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-01-10 16:44:28 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-01-26 04:46:02 +0100 |
commit | 5a84def6a6cd6ac782e16b2aace220a99c31ace7 (patch) | |
tree | c397e00c7cc03a01a5db44a68f695339fb355ee5 /test/web/activity_pub | |
parent | 4ad0ad14ed2d8a10bbf642fd989b3f7f55f9017d (diff) | |
download | pleroma-5a84def6a6cd6ac782e16b2aace220a99c31ace7.tar.gz pleroma-5a84def6a6cd6ac782e16b2aace220a99c31ace7.zip |
Fix the logic in multi-hashtag TLs
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index acece36f0..48eed3f13 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -81,9 +81,16 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do "tag_reject" => ["reject"] }) + fetch_four = + ActivityPub.fetch_activities([], %{ + "tag" => ["test"], + "tag_all" => ["test", "reject"] + }) + assert fetch_one == [status_one, status_three] assert fetch_two == [status_one, status_two, status_three] assert fetch_three == [status_one, status_two] + assert fetch_four == [status_three] end end |