Updated GroupCollectionTimeline, GroupTimeilne newest to only last 14 days
• Updated: - GroupCollectionTimeline, GroupTimeilne newest to only last 14 days
This commit is contained in:
parent
b2c69afdbd
commit
d3e55d28c4
@ -92,6 +92,8 @@ class Api::V1::Timelines::GroupCollectionController < Api::BaseController
|
|||||||
if @sort_type == 'newest'
|
if @sort_type == 'newest'
|
||||||
statuses = Status.where(
|
statuses = Status.where(
|
||||||
group: @groupIds, reply: false
|
group: @groupIds, reply: false
|
||||||
|
).where(
|
||||||
|
'statuses.created_at > ?', 14.days.ago
|
||||||
).paginate_by_id(
|
).paginate_by_id(
|
||||||
limit_param(DEFAULT_STATUSES_LIMIT),
|
limit_param(DEFAULT_STATUSES_LIMIT),
|
||||||
params_slice(:max_id, :since_id, :min_id)
|
params_slice(:max_id, :since_id, :min_id)
|
||||||
|
@ -72,6 +72,8 @@ class Api::V1::Timelines::GroupController < Api::BaseController
|
|||||||
if @sort_type == 'newest'
|
if @sort_type == 'newest'
|
||||||
statuses = Status.where(
|
statuses = Status.where(
|
||||||
group: @group, reply: false
|
group: @group, reply: false
|
||||||
|
).where(
|
||||||
|
'statuses.created_at > ?', 14.days.ago
|
||||||
).paginate_by_id(
|
).paginate_by_id(
|
||||||
limit_param(DEFAULT_STATUSES_LIMIT),
|
limit_param(DEFAULT_STATUSES_LIMIT),
|
||||||
params_slice(:max_id, :since_id, :min_id)
|
params_slice(:max_id, :since_id, :min_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user