mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 22:26:41 +08:00
Get rid of old properties
This commit is contained in:
parent
01f3a7dc01
commit
cc8e889e7a
@ -20,18 +20,7 @@ export default DS.Model.extend({
|
|||||||
deleteUser: DS.belongsTo('user'),
|
deleteUser: DS.belongsTo('user'),
|
||||||
deleted: Ember.computed.notEmpty('deleteTime'),
|
deleted: Ember.computed.notEmpty('deleteTime'),
|
||||||
|
|
||||||
replyTo: DS.belongsTo('post', {inverse: 'replies'}),
|
|
||||||
replyToNumber: DS.attr('number'),
|
|
||||||
replyToUser: DS.belongsTo('user'),
|
|
||||||
|
|
||||||
replies: DS.hasMany('post', {inverse: 'replyTo'}),
|
|
||||||
repliesCount: DS.attr('number'),
|
|
||||||
|
|
||||||
canEdit: DS.attr('boolean'),
|
canEdit: DS.attr('boolean'),
|
||||||
canDelete: DS.attr('boolean'),
|
canDelete: DS.attr('boolean')
|
||||||
|
|
||||||
likes: function() {
|
|
||||||
return Math.floor(Math.random() * (Math.random() < 0.3 ? 10 : 1));
|
|
||||||
}.property()
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user