1
0
Fork 1
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:
Daniel Supernault 2025-02-04 04:47:23 -07:00
parent a9c6d64c52
commit 9a5a9f5583
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -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