public NotificationInfo makeNotification(NotificationContext ctx) {
ExoSocialActivity activity = ctx.value(SocialNotificationUtils.ACTIVITY);
<<<<<<< HEAD
List receivers = new ArrayList();
if (activity.getMentionedIds().length > 0) {
Utils.sendToMentioners(receivers, activity.getMentionedIds(), activity.getPosterId());
} else {
receivers = Utils.getMentioners(activity.getTemplateParams().get("comment"), activity.getPosterId());
}
=======
Set receivers = new HashSet();
Utils.sendToMentioners(receivers, activity.getMentionedIds(), activity.getPosterId());
>>>>>>> 7963f3db6721a874c866a1146865b0392ac2f70d
return NotificationInfo.instance().key(getKey())
.to(new ArrayList(receivers)) |