def get_mylivechat(context, livechat, var_name='my_comments'):
    """
    Fetches user's comments for the given livechat

    Usage:
    {% get_livechat_page `livechat` `var_name` %}
    """
    request = context['request']

    if not request.user.is_authenticated():
        return None

    comments_qs = livechat.comment_set().distinct() \
                    .filter(user=request.user)\
                    .select_related('user').order_by('-submit_date')
    context[var_name] = comments_qs
    return ''