FIX: Build quote share URL using post number, not post ID (#13622)

FIX: Build quote share URL using post number, not post ID (#13622)

diff --git a/app/assets/javascripts/discourse/app/components/quote-button.js b/app/assets/javascripts/discourse/app/components/quote-button.js
index 45ba617..b159a25 100644
--- a/app/assets/javascripts/discourse/app/components/quote-button.js
+++ b/app/assets/javascripts/discourse/app/components/quote-button.js
@@ -250,7 +250,9 @@ export default Component.extend({
 
   @discourseComputed("topic.{id,slug}", "quoteState")
   shareUrl(topic, quoteState) {
-    return getAbsoluteURL(postUrl(topic.slug, topic.id, quoteState.postId));
+    const postId = quoteState.postId;
+    const postNumber = topic.postStream.findLoadedPost(postId).post_number;
+    return getAbsoluteURL(postUrl(topic.slug, topic.id, postNumber));
   },
 
   @discourseComputed("topic.details.can_create_post", "composerVisible")

GitHub sha: ddaf2f55fd831f5e83d8eadfa7a9acb547008ff4

This commit appears in #13622 which was approved by pmusaraj. It was merged by davidtaylorhq.