mirror of
https://github.com/mastodon/mastodon.git
synced 2025-03-12 00:45:22 +00:00
Fixed rendering of excess whitespace in status card titles (#30017)
This commit is contained in:
parent
f4a53f3fb4
commit
b128474625
|
@ -156,7 +156,7 @@ class LinkDetailsExtractor
|
||||||
end
|
end
|
||||||
|
|
||||||
def title
|
def title
|
||||||
html_entities.decode(structured_data&.headline || opengraph_tag('og:title') || document.xpath('//title').map(&:content).first)
|
html_entities.decode(structured_data&.headline || opengraph_tag('og:title') || document.xpath('//title').map(&:content).first).strip
|
||||||
end
|
end
|
||||||
|
|
||||||
def description
|
def description
|
||||||
|
|
Loading…
Reference in New Issue
Block a user