diff --git a/extensions/mentions/js/forum/src/addPostMentionPreviews.js b/extensions/mentions/js/forum/src/addPostMentionPreviews.js index 96e483c83..63c4a109e 100644 --- a/extensions/mentions/js/forum/src/addPostMentionPreviews.js +++ b/extensions/mentions/js/forum/src/addPostMentionPreviews.js @@ -12,6 +12,7 @@ export default function addPostMentionPreviews() { this.oldPostContentHtml = contentHtml; const parentPost = this.props.post; + const $parentPost = this.$(); this.$('.UserMention, .PostMention').each(function() { m.route.call(this, this, false, {}, {attrs: {href: this.getAttribute('href')}}); @@ -25,8 +26,7 @@ export default function addPostMentionPreviews() { // Wrap the mention link in a wrapper element so that we can insert a // preview popup as its sibling and relatively position it. const $preview = $('