mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: use img's title attribute in overlay information when provided
This commit is contained in:
@ -181,9 +181,9 @@ class CookedPostProcessor
|
||||
informations = "#{original_width}x#{original_height}"
|
||||
informations << " #{number_to_human_size(upload.filesize)}" if upload
|
||||
|
||||
a["title"] = filename
|
||||
a["title"] = img["title"] || filename
|
||||
|
||||
meta.add_child create_span_node("filename", filename)
|
||||
meta.add_child create_span_node("filename", img["title"] || filename)
|
||||
meta.add_child create_span_node("informations", informations)
|
||||
meta.add_child create_span_node("expand")
|
||||
end
|
||||
|
Reference in New Issue
Block a user