I’m currently testing an enhanced version of the phpBB importer (I’d like to send a PR during the next few days).
Anyway, during testing I’ve noticed that imported attachments (images) are not always lightboxed. It seems to depend on when Sidekiq is started. I’m not sure if this is only a problem in my development environment or if this is some kind of bug in the importer or Discourse. Maybe @neil or someone else from the team can help me out here.
What I’ve noticed so far:
- Lightboxing works if Sidekiq isn’t running during the import. It has to be started after the import is done and after Discourse is started.
- If Sidekiq is running during the import or if Sidekiq is started before Discourse then the lightboxing won’t work.
I didn’t see any errors in the logs, so I’m not sure what’s happening here. I can reproduce this behaviour with the existing phpBB importer. I’ve uploaded a ZIP file with a database dump containing just one topic and an attached image as an example.