diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 index b9ffee95856..6e8f82c167a 100644 --- a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 @@ -159,10 +159,11 @@ export default class PostCooked { _updateQuoteElements($aside, desc) { let navLink = ""; const quoteTitle = I18n.t("post.follow_quote"); - const postNumber = $aside.data('post'); + let postNumber = $aside.data('post'); + let topicNumber = $aside.data('topic'); // If we have a post reference - if (postNumber) { + if (topicNumber && topicNumber === this.attrs.topicId && postNumber) { let icon = iconHTML('arrow-up'); navLink = `${icon}`; }