aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/client-html.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-08 16:26:38 +0200
committerChocobozzz <me@florianbigard.com>2022-04-08 16:28:14 +0200
commitc6d20c84a75c77f50e19afa93aa318ad92edba90 (patch)
tree9a1115277389af26f19e25223eb18346595b5aa9 /server/lib/client-html.ts
parent1575be682587149993f80af9d6b26f2d4db454c8 (diff)
downloadPeerTube-c6d20c84a75c77f50e19afa93aa318ad92edba90.tar.gz
PeerTube-c6d20c84a75c77f50e19afa93aa318ad92edba90.tar.zst
PeerTube-c6d20c84a75c77f50e19afa93aa318ad92edba90.zip
Disallow unlisted video indexation
Diffstat (limited to 'server/lib/client-html.ts')
-rw-r--r--server/lib/client-html.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts
index 38697401a..a9c835fbf 100644
--- a/server/lib/client-html.ts
+++ b/server/lib/client-html.ts
@@ -134,6 +134,7 @@ class ClientHtml {
134 escapedSiteName: escapeHTML(siteName), 134 escapedSiteName: escapeHTML(siteName),
135 escapedTitle: escapeHTML(title), 135 escapedTitle: escapeHTML(title),
136 escapedDescription: escapeHTML(description), 136 escapedDescription: escapeHTML(description),
137 disallowIndexation: video.privacy !== VideoPrivacy.PUBLIC,
137 image, 138 image,
138 embed, 139 embed,
139 ogType, 140 ogType,
@@ -197,6 +198,7 @@ class ClientHtml {
197 escapedSiteName: escapeHTML(siteName), 198 escapedSiteName: escapeHTML(siteName),
198 escapedTitle: escapeHTML(title), 199 escapedTitle: escapeHTML(title),
199 escapedDescription: escapeHTML(description), 200 escapedDescription: escapeHTML(description),
201 disallowIndexation: videoPlaylist.privacy !== VideoPlaylistPrivacy.PUBLIC,
200 embed, 202 embed,
201 image, 203 image,
202 list, 204 list,