fix 2898 - public profile unauthed user

This commit is contained in:
David Morley 2012-02-18 12:30:01 -06:00 committed by Maxwell Salzberg
parent c1463c63a4
commit b5bb66c66d

View file

@ -18,9 +18,11 @@ app.views.Stream = Backbone.View.extend({
this.stream.bind("fetched", this.removeLoader, this)
this.stream.bind("allPostsLoaded", this.unbindInfScroll, this)
this.collection.bind("add", this.addPost, this);
if(window.app.user()) {
app.user().bind("nsfwChanged", function() {
_.map(this.postViews, function(view){ view.render() })
}, this)
}
},
addPost : function(post) {