Display reposted replies with exclude_replies: true

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2023-03-15 19:44:42 +01:00
parent e3ea311cd5
commit b6a9d87f16
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1 @@
Display reposted replies with exclude_replies: true

View File

@ -964,8 +964,9 @@ defp restrict_media(query, _), do: query
defp restrict_replies(query, %{exclude_replies: true}) do defp restrict_replies(query, %{exclude_replies: true}) do
from( from(
[_activity, object] in query, [activity, object] in query,
where: fragment("?->>'inReplyTo' is null", object.data) where:
fragment("?->>'inReplyTo' is null or ?->>'type' = 'Announce'", object.data, activity.data)
) )
end end