mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Don't fail silently.
This commit is contained in:
parent
692ecff3eb
commit
1a4a0d7e89
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ class Upload < ActiveRecord::Base
|
||||||
File.open(path) do |f|
|
File.open(path) do |f|
|
||||||
upload.url = Discourse.store.store_upload(f, upload)
|
upload.url = Discourse.store.store_upload(f, upload)
|
||||||
upload.filesize = f.size
|
upload.filesize = f.size
|
||||||
upload.save
|
upload.save!
|
||||||
end
|
end
|
||||||
# remap the URLs
|
# remap the URLs
|
||||||
DbHelper.remap(UrlHelper.absolute(previous_url), upload.url) unless external
|
DbHelper.remap(UrlHelper.absolute(previous_url), upload.url) unless external
|
||||||
|
|
Loading…
Reference in a new issue