Skip to content

Commit

Permalink
Merge pull request #390 from epicmonkey/development
Browse files Browse the repository at this point in the history
Restores group functionality.
  • Loading branch information
epicmonkey committed May 20, 2015
2 parents 615e60a + c37a560 commit 8dc1b31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions public/js/app/models/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ define(["config",
comments: DS.hasMany('comment'),
likes: DS.hasMany('user'),
groups: DS.hasMany('group'),
postedTo: DS.hasMany('subscription'),

isHidden: DS.attr('boolean'),

Expand All @@ -27,10 +28,11 @@ define(["config",
return this.get('publicSubscriptions.length') > 1
}.property('publicSubscriptions'),

// TODO(yole) reimplement
publicSubscriptions: function() {
return []
},
return _.filter(this.get('postedTo.currentState'), function(feed) {
return feed.get('name') == 'Posts'
})
}.property('postedTo'),

createdAgo: function() {
if (this.get('createdAt')) {
Expand Down

0 comments on commit 8dc1b31

Please sign in to comment.