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:
parent
9f89aefdd3
commit
79beb9f409
4 changed files with 15 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue