Merge pull request #6598 from pixelfed/staging

Staging
pull/6605/head
dansup 2 months ago committed by GitHub
commit b68cc2c930
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

755
composer.lock generated

File diff suppressed because it is too large Load Diff

@ -46,10 +46,10 @@ if($displayName && $captionPreview) {
@endsection
@push('meta')@if($mediaCount && $s['pf_type'] === "photo" || $s['pf_type'] === "photo:album")
@push('meta')@if($mediaCount && !$s['sensitive'] && $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']}}">
@elseif($mediaCount && !$s['sensitive'] && $s['pf_type'] === "video" || $s['pf_type'] === "video:album")<meta property="og:video" content="{{$s['media_attachments'][0]['url']}}">
<meta property="og:image" content="{{$s['media_attachments'][0]['preview_url']}}">
<meta name="twitter:card" content="summary">
@else

Loading…
Cancel
Save