Improving feed queries, switching API to doorkeeper authentication
This commit is contained in:
parent
b919f39b31
commit
447cfef62d
12 changed files with 50 additions and 11 deletions
|
@ -18,11 +18,11 @@ class PrecomputeFeedService < BaseService
|
|||
end
|
||||
|
||||
def home(account)
|
||||
Status.where(account: [account] + account.following)
|
||||
Status.where(account: [account] + account.following).with_includes.with_counts
|
||||
end
|
||||
|
||||
def mentions(account)
|
||||
Status.where(id: Mention.where(account: account).pluck(:status_id))
|
||||
Status.where(id: Mention.where(account: account).pluck(:status_id)).with_includes.with_counts
|
||||
end
|
||||
|
||||
def key(type, id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue