From eaf585d47d1f83149f5f53e4f0af556f1ae89a3c Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Sat, 28 Jul 2012 17:14:28 -0700 Subject: [PATCH] Fixing a couple small bugs around missing users, nd missing icons. --- media/js/newsblur/views/profile_thumb.js | 4 +++- templates/reader/activities_module.xhtml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/media/js/newsblur/views/profile_thumb.js b/media/js/newsblur/views/profile_thumb.js index 62c9831e9..e91c8e5fb 100644 --- a/media/js/newsblur/views/profile_thumb.js +++ b/media/js/newsblur/views/profile_thumb.js @@ -37,7 +37,9 @@ NEWSBLUR.Views.ProfileThumb = Backbone.View.extend({ if (!user && user_id == NEWSBLUR.Globals.user_id) { user = NEWSBLUR.assets.user_profile; } - return new NEWSBLUR.Views.ProfileThumb(_.extend({}, {model: user}, options)); + if (user) { + return new NEWSBLUR.Views.ProfileThumb(_.extend({}, {model: user}, options)); + } } }); \ No newline at end of file diff --git a/templates/reader/activities_module.xhtml b/templates/reader/activities_module.xhtml index 30bcd809d..b1f44165a 100644 --- a/templates/reader/activities_module.xhtml +++ b/templates/reader/activities_module.xhtml @@ -60,7 +60,7 @@ {% endif %} {% if activity.category == 'sharedstory' %} - +
{{ activity.time_since }} ago