fixed via twitter bug

This commit is contained in:
Sacha Greif 2014-07-19 08:50:36 +09:00
parent f8fb6b4036
commit bcd0bdf359
2 changed files with 3 additions and 4 deletions

View file

@ -25,10 +25,6 @@ Template[getTemplate('postContent')].helpers({
},
commentsDisplayText: function(){
return this.comments == 1 ? i18n.t('comment') : i18n.t('comments');
},
viaTwitter: function () {
return !!getSetting('twitterAccount') ? 'via='+getSetting('twitterAccount') : '';
}
});

View file

@ -1,6 +1,9 @@
Template[getTemplate('postShare')].helpers({
sourceLink: function(){
return !!this.url ? this.url : getSiteUrl() + "posts/"+this._id;
},
viaTwitter: function () {
return !!getSetting('twitterAccount') ? 'via='+getSetting('twitterAccount') : '';
}
});