Commit 1196ef36 authored by Rob Colbert's avatar Rob Colbert

disable group posts in home feed

parent 0cc5dfab
...@@ -288,11 +288,11 @@ class Status < ApplicationRecord ...@@ -288,11 +288,11 @@ class Status < ApplicationRecord
def as_home_timeline(account) def as_home_timeline(account)
query = where(account: [account] + account.following) query = where(account: [account] + account.following)
if account.user.allows_group_in_home_feed? # if account.user.allows_group_in_home_feed?
query = query.or(where(group: account.groups)) # query = query.or(where(group: account.groups))
end # end
query.where(visibility: [:public, :unlisted, :private]) query.where(visibility: [:public, :unlisted, :private])
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment