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
|
@Override
|
||||||
public boolean notifyCommentReply(String userIdToNotify, String feedid, String commentText, String feedOwnerFullName) {
|
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(
|
Notification not = new Notification(
|
||||||
UUID.randomUUID().toString(),
|
UUID.randomUUID().toString(),
|
||||||
NotificationType.COMMENT,
|
NotificationType.COMMENT,
|
||||||
|
@ -345,9 +349,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
||||||
feedid, //the post
|
feedid, //the post
|
||||||
new Date(),
|
new Date(),
|
||||||
"/group/data-e-infrastructure-gateway?oid="+feedid,
|
"/group/data-e-infrastructure-gateway?oid="+feedid,
|
||||||
|
notificationText,
|
||||||
//also commented on Luca Frosini's post
|
|
||||||
"also commented on " + feedOwnerFullName + "'s post: " + escapeHtml(commentText),
|
|
||||||
false,
|
false,
|
||||||
aslSession.getUsername(),
|
aslSession.getUsername(),
|
||||||
aslSession.getUserFullName(),
|
aslSession.getUserFullName(),
|
||||||
|
|
Loading…
Reference in New Issue