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:
parent
c29f0977d5
commit
948fa80590
|
@ -175,7 +175,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
Date feedDate = new Date();
|
Date feedDate = new Date();
|
||||||
//this means the user has shared a file without text in it.
|
//this means the user has shared a file without text in it.
|
||||||
String textToPost = "";
|
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);
|
textToPost = TextTransfromUtils.convertFileNameAnchorHTML(url);
|
||||||
} else {
|
} else {
|
||||||
textToPost = escapedFeedText;
|
textToPost = escapedFeedText;
|
||||||
|
|
Loading…
Reference in New Issue