From 2ee96d70d61bc05c8cc267f403a19b13e8b15d36 Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 1 Dec 2023 02:13:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8D=EF=B8=8F=20Set=20proper=20ProfileP?= =?UTF-8?q?age=20entity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server.jsx b/src/server.jsx index 29a61a5..4967009 100644 --- a/src/server.jsx +++ b/src/server.jsx @@ -196,6 +196,7 @@ server.get('*', (req, res) => { image: oice.author.avatar, description: oice.author.description, url: `${baseURL}/user/${oice.author.id}`, + identifier: oice.author.id, } : undefined, partOfSeries: { '@context': 'https://schema.org', @@ -237,6 +238,7 @@ server.get('*', (req, res) => { name: library.author.displayName, image: library.author.avatar, url: `${baseURL}/user/${library.author.id}`, + identifier: library.author.id, }] : undefined, }]; if (library.price) { @@ -310,13 +312,13 @@ server.get('*', (req, res) => { props.jsonLds = [{ '@context': 'https://schema.org', '@type': 'ProfilePage', - image: [user.avatar], - author: { + mainEntity: { '@type': 'Person', name: user.displayName, image: user.avatar, description: user.description, url: `${baseURL}/user/${user.id}`, + identifier: user.id, }, }]; }