BUG: send featuredLink as featured_link to backend to update correct … (#7915)

BUG: send featuredLink as featured_link to backend to update correct … (#7915)

diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6
index cdce634..956ea9e 100644
--- a/app/assets/javascripts/discourse/models/composer.js.es6
+++ b/app/assets/javascripts/discourse/models/composer.js.es6
@@ -709,6 +709,11 @@ const Composer = RestModel.extend({
       const topicProps = this.getProperties(
         Object.keys(_edit_topic_serializer)
       );
+      // frontend should have featuredLink but backend needs featured_link
+      if (topicProps.featuredLink) {
+        topicProps.featured_link = topicProps.featuredLink;
+        delete topicProps.featuredLink;
+      }
 
       const topic = this.topic;

GitHub sha: 4bc5ccf7