Esempio n. 1
0
def comment_add_command(request, post_pk, message, comment_number=None):
    '''
    #1234 Blah-blah-blah - Answer to message #1234
    #1234/5 Blah - Answer to reply #1234/5
    '''
    comment = PostInterface(request.user).add_reply(message, post_pk,
            comment_number, from_client=request.from_jid.resource)

    text = '''Reply posted\n%s %s''' % (
                    comment.get_number(),
                    comment.get_full_url()
                    )
    return text