Merge pull request #1799 from Whaxion/Whaxion-improve-ogp

Adding OpenGraph for videos
This commit is contained in:
daniel 2019-10-29 18:12:30 -06:00 committed by GitHub
commit d7455b8f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,9 +17,12 @@
@push('meta') @push('meta')
<meta property="og:description" content="{{ $status->caption }}"> <meta property="og:description" content="{{ $status->caption }}">
<meta property="og:image" content="{{$status->mediaUrl()}}"> <meta property="og:image" content="{{$status->thumb()}}">
<link href='{{$status->url()}}' rel='alternate' type='application/activity+json'> <link href='{{$status->url()}}' rel='alternate' type='application/activity+json'>
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
@if($status->viewType() == "video" || $status->viewType() == "video:album")
<meta property="og:video" content="{{$status->mediaUrl()}}">
@endif
@endpush @endpush
@push('scripts') @push('scripts')