File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import { Helmet } from 'react-helmet-async';
34
34
import { toast } from 'react-toastify' ;
35
35
import MobileLikeButton from '../../components/post/MobileLikeButton' ;
36
36
import RelatedPost from './RelatedPost' ;
37
+ import optimizeImage from '../../lib/optimizeImage' ;
37
38
38
39
const UserProfileWrapper = styled ( VelogResponsive ) `
39
40
margin-top: 16rem;
@@ -321,7 +322,10 @@ const PostViewer: React.FC<PostViewerProps> = ({
321
322
< meta property = "og:title" content = { post . title } />
322
323
< meta property = "og:description" content = { post . short_description } />
323
324
{ post . thumbnail && (
324
- < meta property = "og:image" content = { post . thumbnail } />
325
+ < meta
326
+ property = "og:image"
327
+ content = { optimizeImage ( post . thumbnail , 768 ) }
328
+ />
325
329
) }
326
330
< meta name = "twitter:card" content = "summary_large_image" />
327
331
< meta name = "twitter:title" content = { post . title } />
You can’t perform that action at this time.
0 commit comments