2019-07-02 08:10:25 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Api::V1::Statuses::FavouritedByAccountsController < Api::BaseController
|
|
|
|
include Authorization
|
|
|
|
|
|
|
|
before_action -> { authorize_if_got_token! :read, :'read:accounts' }
|
|
|
|
|
|
|
|
respond_to :json
|
|
|
|
|
|
|
|
def index
|
2019-07-04 05:10:24 +01:00
|
|
|
render json: {}, status: :ok
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def load_accounts
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def default_accounts
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def paginated_favourites
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def next_path
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def prev_path
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def pagination_max_id
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def pagination_since_id
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def records_continue?
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def set_status
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def pagination_params(core_params)
|
2019-07-04 05:10:24 +01:00
|
|
|
#
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
end
|