mastodon api: fix exclude_replies (closes #1287)
This commit is contained in:
parent
72bd763d9f
commit
3e1d2ace73
@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [1.0.92] - 2019-10-??
|
||||||
|
### Fixed
|
||||||
|
- Mastodon API: `exclude_replies` is correctly handled again.
|
||||||
|
|
||||||
## [1.0.91] - 2019-10-06
|
## [1.0.91] - 2019-10-06
|
||||||
### Added
|
### Added
|
||||||
- Reverse Proxy: Do not retry failed requests to limit pressure on the peer
|
- Reverse Proxy: Do not retry failed requests to limit pressure on the peer
|
||||||
|
@ -748,8 +748,8 @@ defp restrict_media(query, _), do: query
|
|||||||
|
|
||||||
defp restrict_replies(query, %{"exclude_replies" => val}) when val == "true" or val == "1" do
|
defp restrict_replies(query, %{"exclude_replies" => val}) when val == "true" or val == "1" do
|
||||||
from(
|
from(
|
||||||
activity in query,
|
[_activity, object] in query,
|
||||||
where: fragment("?->'object'->>'inReplyTo' is null", activity.data)
|
where: fragment("?->>'inReplyTo' is null", object.data)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user