Merge pull request #6684 from pixelfed/shleeable-patch-18

missing parentheses
pull/6697/head
dansup 1 month ago committed by GitHub
commit dcb3ffa04b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -46,10 +46,11 @@ if($displayName && $captionPreview) {
@endsection
@push('meta')@if($mediaCount && !$s['sensitive'] && $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['sensitive'] && $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