From 8b41842bfc6461a8b2f9b6bc9d80a3a82d54e81d Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Fri, 17 Aug 2012 11:18:20 -0400 Subject: fixed shared with user count --- askbot/views/readers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/askbot/views/readers.py b/askbot/views/readers.py index a94ccc2d..268227eb 100644 --- a/askbot/views/readers.py +++ b/askbot/views/readers.py @@ -568,12 +568,12 @@ def question(request, id):#refactor - long subroutine. display question body, an #shared with ... users_count, groups_count = thread.get_sharing_info() shared_users = thread.get_users_shared_with( - max_count=3, + max_count=2, exclude_user=request.user ) sharing_info = { 'users': shared_users, - 'groups': thread.get_groups_shared_with(max_count=3), + 'groups': thread.get_groups_shared_with(max_count=2), 'more_users_count': max(0, users_count - 3), 'more_groups_count': max(0, groups_count - 3) } -- cgit v1.2.3-1-g7c22