disable group posts in home feed
This commit is contained in:
parent
0cc5dfab07
commit
1196ef362d
|
@ -289,9 +289,9 @@ class Status < ApplicationRecord
|
|||
def as_home_timeline(account)
|
||||
query = where(account: [account] + account.following)
|
||||
|
||||
if account.user.allows_group_in_home_feed?
|
||||
query = query.or(where(group: account.groups))
|
||||
end
|
||||
# if account.user.allows_group_in_home_feed?
|
||||
# query = query.or(where(group: account.groups))
|
||||
# end
|
||||
|
||||
query.where(visibility: [:public, :unlisted, :private])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue