mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-24 15:10:44 +00:00
Update status twitter:card to summary_large_image for images/albums
This commit is contained in:
parent
a9c6d64c52
commit
9a5a9f5583
1 changed files with 4 additions and 1 deletions
|
@ -48,12 +48,15 @@ if($displayName && $captionPreview) {
|
|||
|
||||
@push('meta')@if($mediaCount && $s['pf_type'] === "photo" || $s['pf_type'] === "photo:album")
|
||||
<meta property="og:image" content="{{$s['media_attachments'][0]['url']}}">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
@elseif($mediaCount && $s['pf_type'] === "video" || $s['pf_type'] === "video:album")<meta property="og:video" content="{{$s['media_attachments'][0]['url']}}">
|
||||
<meta name="twitter:card" content="summary">
|
||||
@else
|
||||
<meta name="twitter:card" content="summary">
|
||||
@endif<meta property="og:description" content="{{ $ogDescription }}">
|
||||
<meta property="og:published_time" content="{{$s['created_at']}}">
|
||||
<meta property="profile:username" content="{{ $wf }}">
|
||||
<link href='{{$s['url']}}' rel='alternate' type='application/activity+json'>
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="description" content="{{ $ogDescription }}">
|
||||
@endpush
|
||||
|
||||
|
|
Loading…
Reference in a new issue