mirror of
https://github.com/discourse/discourse.git
synced 2025-08-20 18:52:44 +08:00
Post processing of images adds prefix second time when post processing a post with one or more images if running with a prefix
This commit is contained in:
parent
5273657537
commit
68bdab6635
2 changed files with 6 additions and 3 deletions
|
@ -45,7 +45,7 @@ class CookedPostProcessor
|
|||
|
||||
images.each do |img|
|
||||
src = img['src']
|
||||
src = Discourse.base_url + src if src[0] == "/"
|
||||
src = Discourse.base_url_no_prefix + src if src[0] == "/"
|
||||
|
||||
if src.present? && (img['width'].blank? || img['height'].blank?)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue