2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

improvements to importer

- improve perf of test for existing posts
- always use a system guardian when importing posts
- for lithuim importer requery raw (transform is not repeatable)
This commit is contained in:
Sam 2015-10-15 13:25:10 +11:00
parent 06f616792d
commit 606aeb9d55
3 changed files with 37 additions and 15 deletions

View file

@ -57,6 +57,7 @@ class PostCreator
opts[:title] = pg_clean_up(opts[:title]) if opts[:title] && opts[:title].include?("\u0000")
opts[:raw] = pg_clean_up(opts[:raw]) if opts[:raw] && opts[:raw].include?("\u0000")
opts.delete(:reply_to_post_number) unless opts[:topic_id]
@guardian = opts[:guardian] if opts[:guardian]
@spam = false
end