Commit 8a6623e4 authored by 2458773093's avatar 2458773093

fix group local account list for distributions so it does not include users...

fix group local account list for distributions so it does not include users who disabled group posts in feed
parent 3214ad5d
......@@ -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
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