Open kogan opened 13 years ago
Thank you. you are a god!
This solves this issue partly. I ran into an issue when first exporting from Posterous to Django comments and then to Disqus, cause email is empty (or ''), so email is there but it's empty. So I made an extra check just to make sure it really is there, something like:
email = author_email.encode('utf-8') if len(email) < 1: email = 'nobody@nobody.org'
I realize this was 3+ years ago, but if you still have the code, it would be SUPER nice to get it in a pull request so we could include it in the next release.
I was getting a HTTP 400 Bad Request when exporting my django.contrib.comments. This was because the export command was not properly assigning the default value when the contrib model returned an empty string for User and User Email.
I fixed it by modifying the disqus_export.py file to perform the following tests: author_email = 'nobody@nobody.org' if not author_email else author_email author_name = 'nobody' if not author_name else author_name
that segment of code then looked like: