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

FIX: You could set reply_to_post_number when replying as a new topic

This commit is contained in:
Robin Ward 2015-09-22 13:32:19 -04:00
parent 9f89aefdd3
commit 79beb9f409
4 changed files with 15 additions and 9 deletions

View file

@ -56,6 +56,8 @@ class PostCreator
@opts = opts || {}
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]
@spam = false
end