mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-12 17:44:31 +00:00
Adding OpenGraph for videos
This commit is contained in:
parent
3f41feab3a
commit
02c5997eb2
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