1. David Chambers
  2. Mango

Commits

David Chambers  committed 041f21b

Fixed bug in `moderate` handler.

  • Participants
  • Parent commits 4e28178
  • Branches default

Comments (0)

Files changed (1)

File handlers.py

View file
                     'comment_content': comment.message,
                 }
                 if comment.is_anonymous:
-                    args['comment_author'] = comment.anonymous_author['name']
-                    url = comment.anonymous_author['url']
+                    args['comment_author'] = comment.anonymous_author.name
+                    url = comment.anonymous_author.url
                 else:
-                    args['comment_author'] = comment.author['username']
-                    url = comment.author['url']
+                    args['comment_author'] = comment.author.username
+                    url = comment.author.url
 
                 if url:
                     args['comment_author_url'] = url