mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:43:36 +08:00
FIX: reload the 'post' model to retrive raw field value.
This commit is contained in:
parent
aed683390c
commit
1724c27713
|
@ -570,4 +570,4 @@ DEPENDENCIES
|
|||
webpush
|
||||
|
||||
BUNDLED WITH
|
||||
2.0.1
|
||||
1.17.3
|
||||
|
|
|
@ -452,6 +452,7 @@ task 'posts:missing_uploads' => :environment do
|
|||
upload_id = upload.id
|
||||
DbHelper.remap(UrlHelper.absolute(src), upload.url)
|
||||
|
||||
post.reload
|
||||
post.raw.gsub!(src, upload.url)
|
||||
post.cooked.gsub!(src, upload.url)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user