Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk
This commit is contained in:
@@ -18,6 +18,7 @@ class Api::V1::Timelines::ListController < Api::BaseController
|
||||
|
||||
def set_list
|
||||
@list = List.where(account: current_account).find(params[:id])
|
||||
@accounts = ListAccount.select('account_id').where(list_id: @list)
|
||||
end
|
||||
|
||||
def set_statuses
|
||||
@@ -29,16 +30,14 @@ class Api::V1::Timelines::ListController < Api::BaseController
|
||||
end
|
||||
|
||||
def list_statuses
|
||||
list_feed.get(
|
||||
statuses = Status.where(
|
||||
account: @accounts, reply: false
|
||||
).where(
|
||||
'updated_at > ?', 10.days.ago
|
||||
).paginate_by_id(
|
||||
limit_param(DEFAULT_STATUSES_LIMIT),
|
||||
params[:max_id],
|
||||
params[:since_id],
|
||||
params[:min_id]
|
||||
)
|
||||
end
|
||||
|
||||
def list_feed
|
||||
ListFeed.new(@list)
|
||||
params_slice(:max_id, :since_id, :min_id)
|
||||
).reject { |status| FeedManager.instance.filter?(:home, status, current_account.id) }
|
||||
end
|
||||
|
||||
def insert_pagination_headers
|
||||
|
||||
Reference in New Issue
Block a user