DEV: Allow replacing share icons separately (#14774)

DEV: Allow replacing share icons separately (#14774)

diff --git a/app/assets/javascripts/discourse-common/addon/lib/icon-library.js b/app/assets/javascripts/discourse-common/addon/lib/icon-library.js
index 8a01d63..e6c740b 100644
--- a/app/assets/javascripts/discourse-common/addon/lib/icon-library.js
+++ b/app/assets/javascripts/discourse-common/addon/lib/icon-library.js
@@ -20,6 +20,8 @@ const REPLACEMENTS = {
   "d-drop-collapsed": "caret-right",
   "d-unliked": "far-heart",
   "d-liked": "heart",
+  "d-post-share": "link",
+  "d-topic-share": "link",
   "notification.mentioned": "at",
   "notification.group_mentioned": "users",
   "notification.quoted": "quote-right",
diff --git a/app/assets/javascripts/discourse/app/initializers/topic-footer-buttons.js b/app/assets/javascripts/discourse/app/initializers/topic-footer-buttons.js
index 33c22e4..a8aa789 100644
--- a/app/assets/javascripts/discourse/app/initializers/topic-footer-buttons.js
+++ b/app/assets/javascripts/discourse/app/initializers/topic-footer-buttons.js
@@ -14,7 +14,7 @@ export default {
   initialize() {
     registerTopicFooterButton({
       id: "share-and-invite",
-      icon: "link",
+      icon: "d-topic-share",
       priority: SHARE_PRIORITY,
       label() {
         if (!this.get("topic.isPrivateMessage") || this.site.mobileView) {
diff --git a/app/assets/javascripts/discourse/app/widgets/post-menu.js b/app/assets/javascripts/discourse/app/widgets/post-menu.js
index 969bb86..9176ac2 100644
--- a/app/assets/javascripts/discourse/app/widgets/post-menu.js
+++ b/app/assets/javascripts/discourse/app/widgets/post-menu.js
@@ -284,7 +284,7 @@ registerButton("share", (attrs) => {
     action: "share",
     className: "share",
     title: "post.controls.share",
-    icon: "link",
+    icon: "d-post-share",
     data: {
       "share-url": attrs.shareUrl,
       "post-number": attrs.post_number,

GitHub sha: f6a3c22a898069e6e15a4e220fc12b91eba2e15e

This commit appears in #14774 which was approved by romanrizzi. It was merged by pmusaraj.

This commit has been mentioned on Discourse Meta. There might be relevant details there: