Customized more doorkeeper views, only logged in users can create oauth apps

This commit is contained in:
Eugen Rochko
2016-03-12 19:46:06 +01:00
parent aab9f57e36
commit 1aa477ac2f
16 changed files with 234 additions and 102 deletions

View File

@ -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)