don't commit activity service

This commit is contained in:
Connor Turland 2017-03-02 04:38:33 +00:00
parent ddbaac513f
commit 529dec09a3

View file

@ -1,18 +0,0 @@
# frozen_string_literal: true
class ActivityService
def self.send_activity_for_followers(map, reason_filter = nil)
follows = FollowService.get_follows_for_entity(map, nil, reason_filter)
# generate the full set of activity here
follows.each{|follow|
# check here whether this person needs to receive anything
# related to the activity that occurred on the map
body = NotificationService.renderer.render(template: 'template', locals: {}, layout: false)
follow.user.notify('subject', body, event, false, MAP_ACTIVITY, follow.user.emails_allowed, ??)
}
end
end