From 69bd35eaad1c3ecb81546e0d3b9f6fa46d1a5962 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 15 May 2014 17:25:33 +0000 Subject: [PATCH] fixed share with no text bug not trasforming text to shared a file git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@95737 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 2 +- .../user/shareupdates/server/ShareUpdateServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index de711ad..e30e446 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ org.gcube.distribution maven-portal-bom - LATEST + 1.4.0-SNAPSHOT pom import diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java b/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java index 1e3933f..32fcca5 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java @@ -231,14 +231,14 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar //send the notification about this posts to everyone in the group if notifyGroup is true if (pLevel == PrivacyLevel.SINGLE_VRE && vreId != null && vreId.compareTo("") != 0 && notifyGroup) { NotificationsManager nm = new ApplicationNotificationsManager(session, NEWS_FEED_PORTLET_CLASSNAME); - Thread thread = new Thread(new PostNotificationsThread(toShare.getKey(), escapedFeedText, ""+session.getGroupId(), nm)); + Thread thread = new Thread(new PostNotificationsThread(toShare.getKey(), textToPost, ""+session.getGroupId(), nm)); thread.start(); } //send the notification to the mentioned users if (mentionedUsers != null && mentionedUsers.size() > 0) { NotificationsManager nm = new ApplicationNotificationsManager(session); - Thread thread = new Thread(new MentionNotificationsThread(toShare.getKey(), escapedFeedText, nm, mentionedUsers)); + Thread thread = new Thread(new MentionNotificationsThread(toShare.getKey(), textToPost, nm, mentionedUsers)); thread.start(); }