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

fix: Only insert smart picker result as preview if it is a valid URL #6181

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Aug 9, 2024

Otherwise if the result from an assistant smart picker action is not considered markdown it would insert it as a broken link. We should only use the link node type instead if we actually have a valid URL.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Contributor

@elzody elzody left a comment

Choose a reason for hiding this comment

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

Looks reasonable

@elzody
Copy link
Contributor

elzody commented Aug 9, 2024

Not actually sure if the Cypress failure is related -- the tests seem to be really inconsistent right now in text overall

@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Aug 12, 2024
@juliusknorr juliusknorr added this to the Nextcloud 30 milestone Aug 12, 2024
@juliusknorr juliusknorr merged commit 9b69306 into main Aug 13, 2024
59 of 61 checks passed
@juliusknorr juliusknorr deleted the fix/smart-picker-ai branch August 13, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants