diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-06-30 16:41:09 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-06-30 16:41:09 +0200 |
commit | 201804b83634714b51e577ac6aea8a07ba10656e (patch) | |
tree | 4a69f9cecb02fe1d909abe6513d1c101a2279dd8 /lib | |
parent | d4de38e8fff3154259e08292de60900488c210d6 (diff) | |
download | pleroma-201804b83634714b51e577ac6aea8a07ba10656e.tar.gz |
Only return posts in TwAPI conversations.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 25560f4c9..79c1d5b69 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -77,7 +77,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do def fetch_activities_for_context(context) do query = from activity in Activity, - where: fragment("? @> ?", activity.data, ^%{ context: context }), + where: fragment("? @> ?", activity.data, ^%{ type: "Create", context: context }), order_by: [desc: :inserted_at] Repo.all(query) end |