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:
parent
4c6b077cb8
commit
eec5e2c66f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue