mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-31 09:09:53 -04:00
FIX: truncate topic image_url
This commit is contained in:
parent
b779591846
commit
6c7e737294
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue