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(api): improve template link detection #338

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

Redm4x
Copy link
Contributor

@Redm4x Redm4x commented Aug 27, 2024

  • Link detection was not working for images without description (ex: ![](./packetstream.png)). This caused some templates to have missing relative images.
  • Improved relative url cleanup. This didn't cause issues, but some urls kept an unecessary . in the url. Ex: https://github.com/[...]/invoke-ai-cpu/./docker
  • Return status code 404 when a template is not found (instead of 500)

@Redm4x Redm4x force-pushed the bugfixes/fix-template-link-handling branch from 3bdd7de to 3618353 Compare August 27, 2024 19:48
@Redm4x Redm4x merged commit 6c6e0a9 into main Aug 28, 2024
5 checks passed
@Redm4x Redm4x deleted the bugfixes/fix-template-link-handling branch August 28, 2024 05:13
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.

2 participants