From 1de4e0d2ddd57b60e2f41533020b6cbad2e98fd2 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 4 Apr 2016 01:06:54 +0100 Subject: [PATCH] label previews with the target URL if all else fails --- src/components/views/rooms/LinkPreviewWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/LinkPreviewWidget.js b/src/components/views/rooms/LinkPreviewWidget.js index 85bb7eb8ee..adfdc1b3d2 100644 --- a/src/components/views/rooms/LinkPreviewWidget.js +++ b/src/components/views/rooms/LinkPreviewWidget.js @@ -78,7 +78,7 @@ module.exports = React.createClass({ src: src, width: p["og:image:width"], height: p["og:image:height"], - name: p["og:title"] || p["og:description"], + name: p["og:title"] || p["og:description"] || this.props.link, size: p["matrix:image:size"], link: this.props.link, };