Some comment content is empty which leads to errors in Disqus import

Description

When importing into Disqus it reports that the import had some errors. Looking at https://import.disqus.com/<disqus-id>/?a=1 one can view the import reports. In our case we have some null comments. For example

1 2 3 4 5 6 7 8 9 10 11 wxr.xml Missing or invalid message {"post":{"author_email":"blog@lauracowen.co.uk","author_name":"Laura","original_id":"15868","author_url":null,"date":"2010-06-16T09:55:00UTC","message":null,"metadata":"wp_id=15868"},"thread":{"date":"2009-05-13T19:16:00UTC","link_url":"http://in.relation.to/2009/05/13/InstantMockupForEclipseSWTApplications","link_metadata":"13-05-2009-InstantMockupForEclipseSWTApplications","title":"Instant Mockup for Eclipse SWT Applications"}} wxr.xml Missing or invalid message {"post":{"author_email":"thomas.tom.mueller@gmail.com","author_name":"Thomas Mueller","original_id":"18241","author_url":"h2database.com","date":"2011-02-03T15:45:00UTC","message":null,"metadata":"wp_id=18241"},"thread":{"date":"2011-02-02T04:50:00UTC","link_url":"http://in.relation.to/2011/02/02/ThisIsJustNuts","link_metadata":"02-02-2011-ThisIsJustNuts","title":"This is just nuts..."}}

The problem is most likely with the selection of the comment content div which can in some cases contain more than a single class, eg class="commentText plaintext".

See export_comments in importer.rb.

Environment

None

Status

Assignee

Hardy Ferentschik

Reporter

Hardy Ferentschik

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major