mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:24:38 +08:00
FIX: truncate topic image_url
This commit is contained in:
parent
b779591846
commit
6c7e737294
|
@ -207,7 +207,7 @@ class CookedPostProcessor
|
|||
def update_topic_image(images)
|
||||
if @post.is_first_post?
|
||||
img = images.first
|
||||
@post.topic.update_column(:image_url, img["src"]) if img["src"].present?
|
||||
@post.topic.update_column(:image_url, img["src"][0...255]) if img["src"].present?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user