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@95726 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-05-15 16:01:32 +00:00
parent c29f0977d5
commit 948fa80590
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
Date feedDate = new Date();
//this means the user has shared a file without text in it.
String textToPost = "";
if (escapedFeedText.compareTo(ShareUpdateForm.NO_TEXT_FILE_SHARE) == 0) {
if (escapedFeedText.trim().compareTo(ShareUpdateForm.NO_TEXT_FILE_SHARE) == 0) {
textToPost = TextTransfromUtils.convertFileNameAnchorHTML(url);
} else {
textToPost = escapedFeedText;