This commit is contained in:
Massimiliano Assante 2019-09-18 17:04:59 +02:00
parent 4a938e2e5b
commit 3c037c0359
1 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ public class Utils {
Pattern MY_PATTERN = Pattern.compile(MENTIONS_REGEX);
Matcher matcher = MY_PATTERN.matcher(postText);
while (matcher.find()) {
mentions.add(matcher.group());
mentions.add(matcher.group().replace("@", "").trim());
}
return mentions;
}
@ -375,7 +375,7 @@ public class Utils {
*/
public static String convertMentionUsernamesAnchorHTML(String escapedPostText, ArrayList<ItemBean> mentionedUsers) {
String pageToRedirectURL = "";
String pageToRedirectURL = "profile";
String httpGETAttrName = "";
String httpGETAttrValue ="";
@ -384,7 +384,7 @@ public class Utils {
+"?"+
new String(Base64.encodeBase64(httpGETAttrName.getBytes()))+"="+
new String(Base64.encodeBase64(httpGETAttrValue.getBytes()))+"\">"+tagged.getAlternativeName()+"</a> ";
escapedPostText = escapedPostText.replace(tagged.getName(), taggedHTML);
escapedPostText = escapedPostText.replace("@"+tagged.getName(), taggedHTML);
}
return escapedPostText;
}