0
0
Fork 0

Cleaning up format of broadcast real-time messages, removing

redis-backed "mentions" timeline as redundant (given notifications)
This commit is contained in:
Eugen Rochko 2017-02-02 00:03:31 +01:00
parent 1da0ce5c7c
commit d9ca46b464
17 changed files with 26 additions and 110 deletions

View file

@ -102,10 +102,6 @@ class Status < ApplicationRecord
where(account: [account] + account.following)
end
def as_mentions_timeline(account)
where(id: Mention.where(account: account).select(:status_id))
end
def as_public_timeline(account = nil)
query = joins('LEFT OUTER JOIN accounts ON statuses.account_id = accounts.id')
.where(visibility: :public)