From b13e7dda1f33be43d1667b754b67df71f3187a5c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 9 Nov 2016 17:48:44 +0100 Subject: API pagination for all collections using Link header --- app/models/status.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'app/models/status.rb') diff --git a/app/models/status.rb b/app/models/status.rb index 07aef26ee..9db7a0a3a 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -78,14 +78,6 @@ class Status < ApplicationRecord ids.map { |id| statuses[id].first } end - def reblogged_by(limit) - Account.where(id: reblogs.limit(limit).pluck(:account_id)).with_counters - end - - def favourited_by(limit) - Account.where(id: favourites.limit(limit).pluck(:account_id)).with_counters - end - class << self def as_home_timeline(account) where(account: [account] + account.following).with_includes.with_counters -- cgit