mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't remove the topic image if posts don't have them
This commit is contained in:
@@ -492,7 +492,7 @@ class CookedPostProcessor
|
||||
img = extract_images_for_post.first
|
||||
if img.blank?
|
||||
@post.update_column(:image_url, nil) if @post.image_url
|
||||
@post.topic.update_column(:image_url, nil) if @post.topic.image_url
|
||||
@post.topic.update_column(:image_url, nil) if @post.topic.image_url && @post.is_first_post?
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user