From 03c6db4c8d71d24140b00d9802b4b9ab7135494a Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 6 Oct 2021 16:15:01 -0400 Subject: [PATCH] Import function correctly There was a typo in the function's name which broke mentions. --- extensions/mentions/js/src/forum/utils/getMentionText.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/mentions/js/src/forum/utils/getMentionText.js b/extensions/mentions/js/src/forum/utils/getMentionText.js index dab02acf5..5a6c97361 100644 --- a/extensions/mentions/js/src/forum/utils/getMentionText.js +++ b/extensions/mentions/js/src/forum/utils/getMentionText.js @@ -1,4 +1,4 @@ -import getCleanDisplayName, { ShouldUseOldFormat } from './getCleanDisplayName'; +import getCleanDisplayName, { shouldUseOldFormat } from './getCleanDisplayName'; /** * Fetches the mention text for a specified user (and optionally a post ID for replies). @@ -20,7 +20,7 @@ import getCleanDisplayName, { ShouldUseOldFormat } from './getCleanDisplayName'; */ export default function getMentionText(user, postId) { if (postId === undefined) { - if (ShouldUseOldFormat()) { + if (shouldUseOldFormat()) { // Plain @username const cleanText = getCleanDisplayName(user, false); return `@${cleanText}`;