SortedSet<Activity> activities = new TreeSet<Activity>(Activity.notifiablesForBetween(member, lastNotification, begin));
// Merge activities for member
activities.addAll(general);
if (!activities.isEmpty()) {
Logger.info("Notifying user %s of %d activities", member, activities.size());
Setting setting = Setting.findByMember(member);
Mails.notification(member, setting, activities);
}
}
}
// Set LastNotification parameter