Only return posts in TwAPI conversations.
This commit is contained in:
parent
d4de38e8ff
commit
201804b836
4 changed files with 11 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue