def show_message_command(request, post_pk, comment_number=None, show_comments=None): ''' #1234 - Show message #1234\\1 - Show reply #1234+ - Show message with replies ''' post_i = PostInterface(request.user) if not comment_number: post = post_i.get_post(post_pk) body = render_post(post, with_comments=bool(show_comments)) else: comment = post_i.get_comment(post_pk, comment_number) body = render_comment(comment) return body[:-1]