bugfix
This commit is contained in:
parent
4a938e2e5b
commit
3c037c0359
|
@ -94,7 +94,7 @@ public class Utils {
|
||||||
Pattern MY_PATTERN = Pattern.compile(MENTIONS_REGEX);
|
Pattern MY_PATTERN = Pattern.compile(MENTIONS_REGEX);
|
||||||
Matcher matcher = MY_PATTERN.matcher(postText);
|
Matcher matcher = MY_PATTERN.matcher(postText);
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
mentions.add(matcher.group());
|
mentions.add(matcher.group().replace("@", "").trim());
|
||||||
}
|
}
|
||||||
return mentions;
|
return mentions;
|
||||||
}
|
}
|
||||||
|
@ -375,7 +375,7 @@ public class Utils {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static String convertMentionUsernamesAnchorHTML(String escapedPostText, ArrayList<ItemBean> mentionedUsers) {
|
public static String convertMentionUsernamesAnchorHTML(String escapedPostText, ArrayList<ItemBean> mentionedUsers) {
|
||||||
String pageToRedirectURL = "";
|
String pageToRedirectURL = "profile";
|
||||||
String httpGETAttrName = "";
|
String httpGETAttrName = "";
|
||||||
String httpGETAttrValue ="";
|
String httpGETAttrValue ="";
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ public class Utils {
|
||||||
+"?"+
|
+"?"+
|
||||||
new String(Base64.encodeBase64(httpGETAttrName.getBytes()))+"="+
|
new String(Base64.encodeBase64(httpGETAttrName.getBytes()))+"="+
|
||||||
new String(Base64.encodeBase64(httpGETAttrValue.getBytes()))+"\">"+tagged.getAlternativeName()+"</a> ";
|
new String(Base64.encodeBase64(httpGETAttrValue.getBytes()))+"\">"+tagged.getAlternativeName()+"</a> ";
|
||||||
escapedPostText = escapedPostText.replace(tagged.getName(), taggedHTML);
|
escapedPostText = escapedPostText.replace("@"+tagged.getName(), taggedHTML);
|
||||||
}
|
}
|
||||||
return escapedPostText;
|
return escapedPostText;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue