mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 20:13:43 +01:00
Fix local-only toots not being returned by the local TL API
Fixes #1389
This commit is contained in:
parent
913141c678
commit
ab967cf5a0
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController
|
|||
params_slice(:max_id, :since_id, :min_id)
|
||||
)
|
||||
|
||||
statuses = statuses.not_local_only unless truthy_param?(:allow_local_only)
|
||||
statuses = statuses.not_local_only unless truthy_param?(:local) || truthy_param?(:allow_local_only)
|
||||
|
||||
if truthy_param?(:only_media)
|
||||
# `SELECT DISTINCT id, updated_at` is too slow, so pluck ids at first, and then select id, updated_at with ids.
|
||||
|
|
Loading…
Reference in a new issue