2015-08-03 21:25:00 -04:00
|
|
|
import PostModel from 'discourse/models/post';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'extend-post-model',
|
|
|
|
initialize() {
|
|
|
|
PostModel.reopen({
|
|
|
|
postSpecificCount: function() {
|
2015-08-04 00:52:58 -04:00
|
|
|
return this.get('post_number') === parseInt(Discourse.SiteSettings.dfp_nth_post_code);
|
2015-08-03 21:25:00 -04:00
|
|
|
}.property('post_number')
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|