Fix #3197 - Post Replacement comment: use Replacement URL instead of Final Source
Record the URL of the image that was actually downloaded as the replacement URL.
This commit is contained in:
@@ -26,7 +26,7 @@ class PostReplacement < ApplicationRecord
|
||||
if replacement_file.present?
|
||||
update(replacement_url: "file://#{replacement_file.original_filename}")
|
||||
else
|
||||
update(replacement_url: upload.source)
|
||||
update(replacement_url: upload.downloaded_source)
|
||||
end
|
||||
|
||||
# queue the deletion *before* updating the post so that we use the old
|
||||
|
||||
Reference in New Issue
Block a user