From 1aa477ac2f0e9195497899691bb5cc16a7034c01 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 12 Mar 2016 19:46:06 +0100 Subject: Customized more doorkeeper views, only logged in users can create oauth apps --- app/services/precompute_feed_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/services') diff --git a/app/services/precompute_feed_service.rb b/app/services/precompute_feed_service.rb index bcc757222..0fb33db23 100644 --- a/app/services/precompute_feed_service.rb +++ b/app/services/precompute_feed_service.rb @@ -18,11 +18,11 @@ class PrecomputeFeedService < BaseService end def home(account) - Status.where(account: [account] + account.following).with_includes.with_counts + Status.where(account: [account] + account.following).with_includes.with_counters end def mentions(account) - Status.where(id: Mention.where(account: account).pluck(:status_id)).with_includes.with_counts + Status.where(id: Mention.where(account: account).pluck(:status_id)).with_includes.with_counters end def key(type, id) -- cgit