Support linting, clean up some unused variables and weird spacing
This commit is contained in:
@@ -2,18 +2,20 @@ import PostModel from 'discourse/models/post';
|
||||
|
||||
export default {
|
||||
name: 'extend-post-model',
|
||||
initialize() {
|
||||
initialize(container) {
|
||||
const siteSettings = container.lookup('site-settings:main');
|
||||
|
||||
PostModel.reopen({
|
||||
postSpecificCountDFP: function() {
|
||||
return this.get('post_number') === parseInt(Discourse.SiteSettings.dfp_nth_post_code);
|
||||
return this.get('post_number') === parseInt(siteSettings.dfp_nth_post_code);
|
||||
}.property('post_number'),
|
||||
|
||||
postSpecificCountAdsense: function() {
|
||||
return this.get('post_number') === parseInt(Discourse.SiteSettings.adsense_nth_post_code);
|
||||
return this.get('post_number') === parseInt(siteSettings.adsense_nth_post_code);
|
||||
}.property('post_number'),
|
||||
|
||||
postSpecificCountAmazon: function() {
|
||||
return this.get('post_number') === parseInt(Discourse.SiteSettings.amazon_nth_post_code);
|
||||
return this.get('post_number') === parseInt(siteSettings.amazon_nth_post_code);
|
||||
}.property('post_number'),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user