mirror of
https://github.com/Babibubebon/social.metadata.moe.git
synced 2024-09-23 00:54:21 +09:00
Merge branch 'show-reposted-replies' into 'develop'
Display reposted replies with exclude_replies: true See merge request pleroma/pleroma!3961
This commit is contained in:
commit
7798fdc711
2 changed files with 4 additions and 2 deletions
1
changelog.d/show-reposter-replies.add
Normal file
1
changelog.d/show-reposter-replies.add
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Display reposted replies with exclude_replies: true
|
|
@ -979,8 +979,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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue