The MyBB import script in Discourse doesn’t process quoted posts’ PID and date correctly. dandv and elberet discussed possible solutions, with elberet suggesting copying his solution from the SMF2 importer. However, dandv is not familiar with Ruby and the Discourse internals.
dandv identified the issue as a difference in quote syntax between MyBB and Discourse, and asked how to retrieve the post number and topic ID from the post ID via the API. riking suggested calling post_id_from_imported_post_id from the import script, but dandv noted that this only returns one ID.
riking advised passing the ID to Post.find(id) to get the post_number and topic_id. dandv created a pull request with a simpler approach and asked elberet to review it.
Much like Vanilla Porter, the Discourse MyBB import script doesn’t process on quoted posts the PID (to link to the original post) and date (it’s left in seconds-since-epoch format).