1
0
mirror of synced 2026-08-31 22:46:14 +00:00

Added input for nth post for users

This commit is contained in:
Sarah Ni
2015-08-04 14:52:58 +10:00
parent 9e7b33f7c1
commit 9aa1bb3f4a
3 changed files with 5 additions and 1 deletions
@@ -5,7 +5,7 @@ export default {
initialize() {
PostModel.reopen({
postSpecificCount: function() {
return this.get('post_number') % 2 === 0;
return this.get('post_number') === parseInt(Discourse.SiteSettings.dfp_nth_post_code);
}.property('post_number')
});
}