From 6af93f97b2ce41f59eef34f7ec7b7b093d54ebad Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Tue, 14 Aug 2012 00:36:50 -0700 Subject: [PATCH] Showing comment boxes in all the right places on blurblogs. --- apps/social/models.py | 2 ++ templates/social/social_story.xhtml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/social/models.py b/apps/social/models.py index e2d911589..55822e4d0 100644 --- a/apps/social/models.py +++ b/apps/social/models.py @@ -1370,6 +1370,8 @@ class MSharedStory(mongo.Document): story['share_count_friends'] = len(friends_with_shares) story['friend_user_ids'] = list(set(story['commented_by_friends'] + story['shared_by_friends'])) story['public_user_ids'] = list(set(story['commented_by_public'] + story['shared_by_public'])) + if not story['share_user_ids']: + story['share_user_ids'] = story['friend_user_ids'] + story['public_user_ids'] if story.get('source_user_id'): profile_user_ids.add(story['source_user_id']) diff --git a/templates/social/social_story.xhtml b/templates/social/social_story.xhtml index ba4c92115..02a04e0ba 100644 --- a/templates/social/social_story.xhtml +++ b/templates/social/social_story.xhtml @@ -73,7 +73,7 @@
- {% if story.comment_count %} + {% if story.comment_count or not story.shared_by_user %} {% render_story_comments story %} {% endif %}