mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 23:53:09 +02:00
fix: hide sensitive gallery image on OGP (#11380)
This commit is contained in:
parent
81ba841fb8
commit
9208cfd5f3
1 changed files with 6 additions and 2 deletions
|
@ -16,8 +16,12 @@ block og
|
||||||
meta(property='og:title' content= title)
|
meta(property='og:title' content= title)
|
||||||
meta(property='og:description' content= post.description)
|
meta(property='og:description' content= post.description)
|
||||||
meta(property='og:url' content= url)
|
meta(property='og:url' content= url)
|
||||||
meta(property='og:image' content= post.files[0].thumbnailUrl)
|
if post.isSensitive
|
||||||
meta(property='twitter:card' content='summary_large_image')
|
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')
|
||||||
|
|
||||||
block meta
|
block meta
|
||||||
if user.host || profile.noCrawle
|
if user.host || profile.noCrawle
|
||||||
|
|
Loading…
Reference in a new issue