mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Link post to uploads in PostCreator
.
* This ensures that uploads are linked to their post on creation instead of a background job which may be delayed if Sidekiq is facing difficulties.
This commit is contained in:
parent
5baecffb0d
commit
434035f167
8 changed files with 165 additions and 84 deletions
|
@ -886,7 +886,7 @@ SQL
|
|||
post.raw = new_raw
|
||||
post.cooked = post.cook(new_raw)
|
||||
cpp = CookedPostProcessor.new(post)
|
||||
cpp.keep_reverse_index_up_to_date
|
||||
cpp.link_post_uploads
|
||||
post.custom_fields["import_post_process"] = true
|
||||
post.save
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue