-
-
Notifications
You must be signed in to change notification settings - Fork 616
Only add signed urls for secure.notion-static.com
urls
#332
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -235,7 +235,7 @@ export class NotionAPI { | |||
// console.log(block, source) | |||
|
|||
if (source) { | |||
if (source.indexOf('youtube') >= 0 || source.indexOf('vimeo') >= 0) { | |||
if (!source.includes('secure.notion-static.com')) { |
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.
I always only encountered urls with secure.notion-static.com
that needed to be signed, there may be more endpoints than this one
This fixed some issues for me as well where uploaded videos weren't showing up. Like this page for example: 849918ea9a9144ba9b84d70d512274ab Trying to understand the full scope of changes that this will have before merging in. Thanks! |
I've done some more testing and this seems to work well and not break anything. |
I think this is the best fix for the issue. Thanks @remorses 🙏 |
Only add signed urls for `secure.notion-static.com` urls
Description
Only add signed urls for
secure.notion-static.com
urlsFix #331
Notion Test Page ID
https://brave-iberis-6ea.notion.site/Videos-5af3d63c840e458e92c09c2ec6cd71b3
https://react-notion-x-demo.transitivebullsh.it/5af3d63c840e458e92c09c2ec6cd71b3