aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2021-01-31 20:37:33 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2021-01-31 20:37:33 +0300
commit6fd4163ab60be07b1a20ac8911e105ddca8e2095 (patch)
tree22b081e568a924b7cd3a534973b513839050dba4 /test
parent9948ff3356f9e9e214584207a53eba614c73383c (diff)
downloadpleroma-6fd4163ab60be07b1a20ac8911e105ddca8e2095.tar.gz
[#3213] ActivityPub: implemented subqueries-based hashtags filtering, removed aggregation-based hashtags filtering.
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/activity_pub/activity_pub_test.exs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/pleroma/web/activity_pub/activity_pub_test.exs b/test/pleroma/web/activity_pub/activity_pub_test.exs
index 0b18269cd..c2cc5a9af 100644
--- a/test/pleroma/web/activity_pub/activity_pub_test.exs
+++ b/test/pleroma/web/activity_pub/activity_pub_test.exs
@@ -220,7 +220,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
{:ok, status_four} = CommonAPI.post(user, %{status: ". #any1 #any2"})
{:ok, status_five} = CommonAPI.post(user, %{status: ". #any2 #any1"})
- for hashtag_timeline_strategy <- [true, :prefer_aggregation, false] do
+ for hashtag_timeline_strategy <- [true, false] do
clear_config([:instance, :improved_hashtag_timeline], hashtag_timeline_strategy)
fetch_one = ActivityPub.fetch_activities([], %{type: "Create", tag: "test"})
@@ -241,8 +241,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
tag_all: ["test", "reject"]
})
- # This test would fail if JOIN with 2+ terms in "any" clause is done without DISTINCT.
- # The :limit is important (w/o DISTINCT 2 records are deduped by Ecto to 1 b/c of preload).
+ # Testing that deduplication (if needed) is done on DB (not Ecto) level; :limit is important
fetch_five =
ActivityPub.fetch_activities([], %{
type: "Create",