mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Merge pull request #1799 from Whaxion/Whaxion-improve-ogp
Adding OpenGraph for videos
This commit is contained in:
commit
d7455b8f95
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue