From 1196ef362dbc9752e6485af7974e9fda96258cef Mon Sep 17 00:00:00 2001 From: Rob Colbert Date: Wed, 28 Aug 2019 02:21:42 -0400 Subject: [PATCH] disable group posts in home feed --- app/models/status.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/status.rb b/app/models/status.rb index 90bd20c9..57b1c694 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -288,11 +288,11 @@ 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