Skip to content
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

Merged
merged 15 commits into from
Nov 14, 2024
Merged

feat: add video microdata #1070

merged 15 commits into from
Nov 14, 2024

Conversation

aeksandla
Copy link
Contributor

No description provided.

@aeksandla aeksandla changed the title Aeksandla/add video microdata feat: add video microdata Nov 8, 2024
@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@aeksandla aeksandla marked this pull request as ready for review November 11, 2024 09:59
@@ -43,6 +44,13 @@ const LayoutItem = ({
return null;
}
const themedMedia = getThemedValue(media, theme);
const mediaWithMicrodata = mergeVideoMicrodata(themedMedia, {
name:
typeof content.title === 'string'
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

uploadDate: microdata?.contentUpdatedDate,
contentUrl: video?.src?.[0] || videoIframe || youtube,
thumbnailUrl: previewImg,
...videoMicrodata,
Copy link
Collaborator

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@aeksandla aeksandla merged commit 8ba8ca0 into main Nov 14, 2024
4 checks passed
@aeksandla aeksandla deleted the aeksandla/add-video-microdata branch November 14, 2024 08:33
aeksandla added a commit that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants