Skip to content

Commit a7133af

Browse files
committed
output creator correctly
1 parent 613b46e commit a7133af

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/website/app/utils/conversion/jsonld.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,12 @@ export const asJsonLD = ({
171171
}
172172

173173
if (author) {
174-
extraData.creator = author.name;
175-
// TODO: make into an object?
174+
extraData.creator = {
175+
// TODO: ensure it's a URL
176+
"@id": author.account_local_id,
177+
"@type": "UserAccount",
178+
name: author.name,
179+
};
176180
}
177181
let lastModified = concept.last_modified;
178182
if (content && content.last_modified > lastModified)

0 commit comments

Comments
 (0)