fix group local account list for distributions so it does not include users who disabled group posts in feed

This commit is contained in:
2458773093 2019-08-20 03:10:22 +03:00
parent 3214ad5d50
commit 8a6623e463

View File

@ -32,6 +32,8 @@ module GroupInteractions
accounts.local
.joins(:user)
.where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago)
.where('users.id NOT IN (SELECT thing_id FROM settings WHERE thing_type = \'User\' AND var = \'group_in_home_feed\' AND value = \'--- false
\')')
end
end