Skip to content

Commit

Permalink
oembedUrlWidget template now chooses ogImage if available
Browse files Browse the repository at this point in the history
  • Loading branch information
satyapramodh committed Dec 2, 2017
1 parent b9f4f3e commit 7552e69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/rocketchat-oembed/client/oembedUrlWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
{{#if meta.ogImageUserGenerated}}
<div>
<a href="{{url}}" target="{{target}}">
<img src="{{image}}" height="200" />
{{#if meta.ogImage}}
<img src="{{meta.ogImage}}" height="200" />
{{else}}
<img src="{{image}}" height="200" />
{{/if}}
</a>
</div>
{{else}}
Expand Down

0 comments on commit 7552e69

Please sign in to comment.