-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: updated link preview node attributes #15
base: main
Are you sure you want to change the base?
fix: updated link preview node attributes #15
Conversation
Looks good, we should add an option in AppFlowy itself to handle updating the meta information if there is a chance it's outdated. Eg. with GitHub previews and so forth. |
Analyzer found an issue |
last time you mentioned to add a reload option to refetch the metadata if user thinks it's outdated, so I think that will do the job. |
future = parser.start(); | ||
|
||
future.then( | ||
(_) => WidgetsBinding.instance.addPostFrameCallback((_) => _updateNode()), | ||
); |
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.
One minor thing, we shouldn't even need to call the parser if the attributes exist.
I will amend with a new commit.
The idea is to avoid a new request if the node already contains the information.
Part fix for #13
Updated linkPreview node with attributes (title, description) after it is fetched. This will be used for Issue #5193 fixing export markdown format.
PR Checklist