]> _ Git - fluidbook-html5.git/commitdiff
fix #3125 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 10 Oct 2019 11:35:30 +0000 (13:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 10 Oct 2019 11:35:30 +0000 (13:35 +0200)
js/libs/fluidbook/fluidbook.share.js

index 98bc4b5115965e12740ff15586c923f942662acc..4bacb9ec917ec412d14313f2a64fa2b624f4cbf9 100644 (file)
@@ -258,9 +258,10 @@ FluidbookShare.prototype = {
         var tweet;
         if (context === 'publication') {
             tweet = this.fluidbook.datas.twitter_description;
-
         } else if (context === 'product') {
             tweet = this.fluidbook.datas.product_tweet;
+        } else if (context === 'article') {
+            tweet = '%title% : %short%';
         }
         return tweet.replace('%title%', this.getShareTitle(url));
     },