]> BookStack Code Mirror - bookstack/blobdiff - resources/views/shelves/show.blade.php
Reviewed #2393, Removed image guessing and added testing
[bookstack] / resources / views / shelves / show.blade.php
index 1205e8320f9e9618c732393edca32f119a397af4..f5920d4758d98305b5cf7268349b17c0deb26618 100644 (file)
@@ -1,8 +1,10 @@
 @extends('tri-layout')
 
 @push('social-meta')
-    <meta property="og:description" content="{{ Str::limit($shelf->description, 100) }}">
-    <meta property="og:image" content="{{ $shelf->getBookCover() }}">
+    <meta property="og:description" content="{{ Str::limit($shelf->description, 100, '...') }}">
+    @if($shelf->cover)
+        <meta property="og:image" content="{{ $shelf->getBookCover() }}">
+    @endif
 @endpush
 
 @section('body')