group posts in feed db builder
This commit is contained in:
@@ -283,7 +283,7 @@ class Status < ApplicationRecord
|
||||
end
|
||||
|
||||
def as_home_timeline(account)
|
||||
where(account: [account] + account.following).where(visibility: [:public, :unlisted, :private])
|
||||
where(account: [account] + account.following).or(where(group: account.groups)).where(visibility: [:public, :unlisted, :private])
|
||||
end
|
||||
|
||||
def as_group_timeline(group)
|
||||
|
||||
Reference in New Issue
Block a user