Showing comment boxes in all the right places on blurblogs.

This commit is contained in:
Samuel Clay 2012-08-14 00:36:50 -07:00
parent 99976d6f18
commit 6af93f97b2
2 changed files with 3 additions and 1 deletions

View file

@ -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'])

View file

@ -73,7 +73,7 @@
</div>
<div class="NB-story-comments-container">
{% if story.comment_count %}
{% if story.comment_count or not story.shared_by_user %}
{% render_story_comments story %}
{% endif %}
</div>