fix: hide sensitive gallery image on OGP
This commit is contained in:
parent
c1a19ff900
commit
19d69455f3
|
@ -16,6 +16,10 @@ block og
|
|||
meta(property='og:title' content= title)
|
||||
meta(property='og:description' content= post.description)
|
||||
meta(property='og:url' content= url)
|
||||
if post.isSensitive
|
||||
meta(property='og:image' content= avatarUrl)
|
||||
meta(property='twitter:card' content='summary')
|
||||
else
|
||||
meta(property='og:image' content= post.files[0].thumbnailUrl)
|
||||
meta(property='twitter:card' content='summary_large_image')
|
||||
|
||||
|
|
Loading…
Reference in New Issue