Ver código fonte

Atlas meta-server build fix (#4388)

* Fixed metaserver build issue (#4386)

---------

Co-authored-by: Artem <Artem Slugin>
attemka 1 ano atrás
pai
commit
17c6d337e5

+ 1 - 1
packages/atlas-meta-server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@joystream/atlas-meta-server",
-  "version": "1.3.0",
+  "version": "1.3.1",
   "description": "Node server for pre rendering html meta tags",
   "license": "GPL-3.0",
   "scripts": {

+ 1 - 1
packages/atlas-meta-server/src/index.ts

@@ -32,7 +32,7 @@ app.get('/video/:id', async (req, res) => {
 
     const thumbnailUrl = video.thumbnailPhoto ? generateAssetUrl(video.thumbnailPhoto) : ''
 
-    const videoMetaTags = generateVideoMetaTags(video, thumbnailUrl, appData.name, APP_URL, appData.twitterId)
+    const videoMetaTags = generateVideoMetaTags(video, [thumbnailUrl], appData.name, APP_URL, appData.twitterId)
     const videoSchemaTagsHtml = generateVideoSchemaTagsHtml(video, thumbnailUrl, appData.name, APP_URL)
 
     applyMetaTagsToHtml(html, videoMetaTags)