lib/onebox/layout.rb in onebox-1.6.8 vs lib/onebox/layout.rb in onebox-1.6.9
- old
+ new
@@ -44,10 +44,10 @@
def link
record[:link]
end
def domain
- record[:domain] || URI(link || '').host
+ record[:domain] || URI(link || '').host.to_s.sub(/^www\./, '')
end
def metadata_1_label
record[:metadata_1_label]
end