summaryrefslogtreecommitdiffstats
path: root/webapp/utils/text_formatting.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/utils/text_formatting.jsx')
-rw-r--r--webapp/utils/text_formatting.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx
index 23e286b45..3b96a1b42 100644
--- a/webapp/utils/text_formatting.jsx
+++ b/webapp/utils/text_formatting.jsx
@@ -117,7 +117,7 @@ export function sanitizeHtml(text) {
// Convert emails into tokens
function autolinkEmails(text, tokens) {
- function replaceEmailWithToken(autolinker, match) {
+ function replaceEmailWithToken(match) {
const linkText = match.getMatchedText();
let url = linkText;
@@ -141,7 +141,7 @@ function autolinkEmails(text, tokens) {
urls: false,
email: true,
phone: false,
- twitter: false,
+ mention: false,
hashtag: false,
replaceFn: replaceEmailWithToken
});