Commit 3fc85407 authored by mgabdev's avatar mgabdev

revert 213d5862

removing home group timeline
parent 20edc227
......@@ -27,11 +27,4 @@ module GroupInteractions
query.pluck(:group_id, :unread_count).each_with_object({}) { |e, mapping| mapping[e[0]] = e[1] }
end
end
def accounts_for_local_distribution
accounts.local
.joins(:user)
.where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago)
end
end
......@@ -46,16 +46,6 @@ class FanOutOnWriteService < BaseService
end
end
def deliver_to_group_members(status)
Rails.logger.debug "Delivering status #{status.id} to group members #{status.group.id}"
status.group.accounts_for_local_distribution.select(:id).reorder(nil).find_in_batches do |members|
FeedInsertWorker.push_bulk(members) do |member|
[status.id, member.id, :home]
end
end
end
def deliver_to_lists(status)
Rails.logger.debug "Delivering status #{status.id} to lists"
......@@ -72,8 +62,6 @@ class FanOutOnWriteService < BaseService
Rails.logger.debug "Delivering status #{status.id} to group"
Redis.current.publish("timeline:group:#{status.group_id}", @payload)
deliver_to_group_members(status)
end
def deliver_to_mentioned_followers(status)
......
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