mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Fixing JS exception on missing users.
This commit is contained in:
parent
8e85bd9ffe
commit
146f9392ff
1 changed files with 6 additions and 2 deletions
|
@ -46,12 +46,16 @@ NEWSBLUR.Views.StoryCommentsView = Backbone.View.extend({
|
|||
var comment_user_ids = this.model.get('comment_user_ids');
|
||||
_.each(this.model.get('shared_by_friends'), function(user_id) {
|
||||
if (_.contains(comment_user_ids, user_id)) return;
|
||||
var $thumb = NEWSBLUR.Views.ProfileThumb.create(user_id).render().el;
|
||||
var profile_thumb = NEWSBLUR.Views.ProfileThumb.create(user_id);
|
||||
if (!profile_thumb) return;
|
||||
var $thumb = profile_thumb.render().el;
|
||||
$shares_friends.append($thumb);
|
||||
});
|
||||
_.each(this.model.get('shared_by_public'), function(user_id) {
|
||||
if (_.contains(comment_user_ids, user_id)) return;
|
||||
var $thumb = NEWSBLUR.Views.ProfileThumb.create(user_id).render().el;
|
||||
var profile_thumb = NEWSBLUR.Views.ProfileThumb.create(user_id);
|
||||
if (!profile_thumb) return;
|
||||
var $thumb = profile_thumb.render().el;
|
||||
$shares_public.append($thumb);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue