Cleaning up format of broadcast real-time messages, removing
redis-backed "mentions" timeline as redundant (given notifications)
This commit is contained in:
parent
1da0ce5c7c
commit
d9ca46b464
17 changed files with 26 additions and 110 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue