differentiate notification for also commented depending if the owner commented too
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@73627 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ced70defbe
commit
3e32d6aaac
|
@ -338,6 +338,10 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
|||
*/
|
||||
@Override
|
||||
public boolean notifyCommentReply(String userIdToNotify, String feedid, String commentText, String feedOwnerFullName) {
|
||||
String notificationText = (aslSession.getUserFullName().compareTo(feedOwnerFullName) == 0) ?
|
||||
"also commented on his post: " + escapeHtml(commentText)
|
||||
:
|
||||
"also commented on " + feedOwnerFullName + "'s post: " + escapeHtml(commentText);
|
||||
Notification not = new Notification(
|
||||
UUID.randomUUID().toString(),
|
||||
NotificationType.COMMENT,
|
||||
|
@ -345,9 +349,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
|||
feedid, //the post
|
||||
new Date(),
|
||||
"/group/data-e-infrastructure-gateway?oid="+feedid,
|
||||
|
||||
//also commented on Luca Frosini's post
|
||||
"also commented on " + feedOwnerFullName + "'s post: " + escapeHtml(commentText),
|
||||
notificationText,
|
||||
false,
|
||||
aslSession.getUsername(),
|
||||
aslSession.getUserFullName(),
|
||||
|
|
Loading…
Reference in New Issue