diff --git a/importer/wordpress.rb b/importer/wordpress.rb index 4461f4c..04c99e2 100644 --- a/importer/wordpress.rb +++ b/importer/wordpress.rb @@ -93,6 +93,10 @@ module Importer end categories.uniq! + if categories.empty? + categories << 'Uncategorized' + end + begin post_date = Date.strptime(get(post, 'wp:post_date_gmt'), "%Y-%m-%d %H:%M:%S") rescue ArgumentError