fix 2898 - public profile unauthed user
This commit is contained in:
parent
c1463c63a4
commit
b5bb66c66d
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue