Commits

David Chambers committed 1182d2b

fix *that* old chestnut (thanks for the bug report, Russian spammer!)

Comments (0)

Files changed (1)

     @staticmethod
     def create(**kwargs):
         """Create a new post and return it as a `post` object."""
-        kwargs = dict((k, v) for k, v in kwargs.items() if v)
+        kwargs = dict((k, v.encode('utf-8')) for k, v in kwargs.items() if v)
         return post(disqus.posts.create(state='unapproved', **kwargs))
 
     @staticmethod
     @staticmethod
     def create(**kwargs):
         """Create a new thread and return it as a `thread` object."""
+        kwargs = dict((k, v.encode('utf-8')) for k, v in kwargs.items())
         return thread(disqus.threads.create(forum=DISQUS_SHORTNAME, **kwargs))
 
     @staticmethod