Fix for hashtags at new line

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@129128 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-06-15 15:15:17 +00:00
parent 4c6b077cb8
commit eec5e2c66f
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
String escapedFeedText = Utils.escapeHtmlAndTransformUrl(postText);
// get hashtags
List<String> hashtags = Utils.getHashTags(postText);
List<String> hashtags = Utils.getHashTags(escapedFeedText);
if (hashtags != null && !hashtags.isEmpty())
escapedFeedText = Utils.convertHashtagsAnchorHTML(escapedFeedText, hashtags);
@ -272,7 +272,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
String escapedFeedText = Utils.escapeHtmlAndTransformUrl(feedText);
// get the list of hashtags
List<String> hashtags = Utils.getHashTags(feedText);
List<String> hashtags = Utils.getHashTags(escapedFeedText);
if (hashtags != null && !hashtags.isEmpty())
escapedFeedText = Utils.convertHashtagsAnchorHTML(escapedFeedText, hashtags);