summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2023-03-15 19:44:42 +0100
committermarcin mikołajczak <git@mkljczk.pl>2023-10-28 00:10:13 +0200
commitb6a9d87f16a4806eab7a6da874d6f75b65d4f214 (patch)
tree724c46aeff58b7e2eda53639dfa2832c81b19d89 /lib
parente3ea311cd594d4f0bc8c4e05ca8eb1eee18ae6be (diff)
downloadpleroma-b6a9d87f16a4806eab7a6da874d6f75b65d4f214.tar.gz
pleroma-b6a9d87f16a4806eab7a6da874d6f75b65d4f214.zip
Display reposted replies with exclude_replies: true
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/activity_pub.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex
index 3979d418e..4b956c680 100644
--- a/lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/lib/pleroma/web/activity_pub/activity_pub.ex
@@ -964,8 +964,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
defp restrict_replies(query, %{exclude_replies: true}) do
from(
- [_activity, object] in query,
- where: fragment("?->>'inReplyTo' is null", object.data)
+ [activity, object] in query,
+ where:
+ fragment("?->>'inReplyTo' is null or ?->>'type' = 'Announce'", object.data, activity.data)
)
end