Successful ads between nth post
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import PostModel from 'discourse/models/post';
|
||||
|
||||
export default {
|
||||
name: 'extend-post-model',
|
||||
initialize() {
|
||||
PostModel.reopen({
|
||||
postSpecificCount: function() {
|
||||
return this.get('post_number') % 2 === 0;
|
||||
}.property('post_number')
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user