diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-18 09:52:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-18 10:00:37 +0200 |
commit | e032aec9b92be25a996923361f83a96a89505254 (patch) | |
tree | 245b559061fdcb1c27946333ff7ecd6bd82247f7 /server/initializers | |
parent | 1d94c154689b89b2c5e55f6e12ec25f49b369d52 (diff) | |
download | PeerTube-e032aec9b92be25a996923361f83a96a89505254.tar.gz PeerTube-e032aec9b92be25a996923361f83a96a89505254.tar.zst PeerTube-e032aec9b92be25a996923361f83a96a89505254.zip |
Render CSS/title/description tags on server side
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e844c8203..ba48399de 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -466,7 +466,12 @@ const ACCEPT_HEADERS = [ 'html', 'application/json' ].concat(ACTIVITY_PUB.POTENT | |||
466 | 466 | ||
467 | // --------------------------------------------------------------------------- | 467 | // --------------------------------------------------------------------------- |
468 | 468 | ||
469 | const OPENGRAPH_AND_OEMBED_COMMENT = '<!-- open graph and oembed tags -->' | 469 | const CUSTOM_HTML_TAG_COMMENTS = { |
470 | TITLE: '<!-- title tag -->', | ||
471 | DESCRIPTION: '<!-- description tag -->', | ||
472 | CUSTOM_CSS: '<!-- custom css tag -->', | ||
473 | OPENGRAPH_AND_OEMBED: '<!-- open graph and oembed tags -->' | ||
474 | } | ||
470 | 475 | ||
471 | // --------------------------------------------------------------------------- | 476 | // --------------------------------------------------------------------------- |
472 | 477 | ||
@@ -528,7 +533,7 @@ export { | |||
528 | JOB_ATTEMPTS, | 533 | JOB_ATTEMPTS, |
529 | LAST_MIGRATION_VERSION, | 534 | LAST_MIGRATION_VERSION, |
530 | OAUTH_LIFETIME, | 535 | OAUTH_LIFETIME, |
531 | OPENGRAPH_AND_OEMBED_COMMENT, | 536 | CUSTOM_HTML_TAG_COMMENTS, |
532 | BROADCAST_CONCURRENCY, | 537 | BROADCAST_CONCURRENCY, |
533 | PAGINATION_COUNT_DEFAULT, | 538 | PAGINATION_COUNT_DEFAULT, |
534 | ACTOR_FOLLOW_SCORE, | 539 | ACTOR_FOLLOW_SCORE, |