Skip to content

Commit

Permalink
Merge pull request #9000 from satyapramodh/twitter-url-fix
Browse files Browse the repository at this point in the history
[FIX] if ogImage exists use it over image in oembedUrlWidget
  • Loading branch information
rodrigok committed Dec 4, 2017
2 parents 604a482 + 7552e69 commit c13e1da
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 c13e1da

Please sign in to comment.