Trying to do a disqus import, says category not found

Trying to do the disqus import

discourse@s-app:/var/www/discourse$ RAILS_ENV=production ruby script/import_scripts/disqus.rb --file=/tmp/disqus.xml --dry_run --post-as=system
Category Front page not found

I understand this comes from the section

class ImportScripts::Disqus < ImportScripts::Base
  #CHANGE THESE BEFORE RUNNING THE IMPORTER
  IMPORT_FILE = File.expand_path("/tmp/disqus.xml")
  IMPORT_CATEGORY = "Front page"

Question:

Which category is this referring to and how do I set it?

Importer for reference:

Looks like the disqus importer requires a category name. If you don’t want to import into a specific category just yet, you could change "Front page" by "Uncategorized".

3 Likes

Thank you.

Out of curiosity, this refers to a category within discourse, right? And not a category that disqus comments were in.

Yes, a category in Discourse.

https://github.com/discourse/discourse/blob/5012d46cbd3bcf79b7351f7d2d41003496a796c5/script/import_scripts/disqus.rb#L14

1 Like

Thank you.

Meta: So beautiful that I can see a highlighted line!

This topic was automatically closed after 2396 days. New replies are no longer allowed.