-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add video microdata #1070
Conversation
…nto aeksandla/add-video-microdata
Playwright Test Component is ready. |
…nto aeksandla/add-video-microdata
…nto aeksandla/add-video-microdata
Preview is ready. |
…nto aeksandla/add-video-microdata
@@ -43,6 +44,13 @@ const LayoutItem = ({ | |||
return null; | |||
} | |||
const themedMedia = getThemedValue(media, theme); | |||
const mediaWithMicrodata = mergeVideoMicrodata(themedMedia, { | |||
name: | |||
typeof content.title === 'string' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we can create deserialization on this step for content
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/components/Media/Media.tsx
Outdated
uploadDate: microdata?.contentUpdatedDate, | ||
contentUrl: video?.src?.[0] || videoIframe || youtube, | ||
thumbnailUrl: previewImg, | ||
...videoMicrodata, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we need to use sanitizeMicrodata
only in this place ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
No description provided.