Merge pull request #2903 from diasporg/2898-public-profile

fix 2898 - public profile unauthed user [ci skip]
This commit is contained in:
Maxwell Salzberg 2012-02-18 15:59:44 -08:00
commit e95b0d92e4

View file

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