diff --git a/isso/comment.py b/isso/comment.py index 060ffc9..0feb230 100644 --- a/isso/comment.py +++ b/isso/comment.py @@ -39,7 +39,7 @@ def create(app, environ, request, path): md5 = rv.md5 rv.text = app.markup.convert(rv.text) - response = Response(json.dumps(rv), 201, content_type='application/json') + response = Response(json.dumps(rv), 202 if rv.pending else 201, content_type='application/json') response.set_cookie('session-%s-%s' % (urllib.quote(path, ''), rv.id), app.signer.dumps([path, rv.id, md5]), max_age=app.MAX_AGE) return response diff --git a/isso/js/isso.js b/isso/js/isso.js index 0eec7bb..def054f 100644 --- a/isso/js/isso.js +++ b/isso/js/isso.js @@ -91,7 +91,7 @@ function form(id, appendfunc, eventfunc) { var formid = 'issoform' + (id ? ('_' + id) : ''), form = '
' + '
' + - ' ' + + ' ' + '
' + '
' + ' ' + @@ -100,7 +100,7 @@ function form(id, appendfunc, eventfunc) { '' + '
' + '
' + - ' ' + + ' ' + '
' + '
' + '' + @@ -127,12 +127,6 @@ function insert(post) { */ var path = encodeURIComponent(window.location.pathname); - var author = post['author'] || 'Anonymous'; - - if (post['website']) { - author = '' + author + ''; - } - var date = new Date(parseInt(post['created']) * 1000); // create