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: Handle case where image markdown insert passes 1000 chars #675

Merged

Conversation

CamKem
Copy link
Collaborator

@CamKem CamKem commented Sep 27, 2024

We currently have an edge case, where if the user has a post that is close to the max content length & they upload an image, there is no current validation, which allows the user to exceed the content limit.

Screenshot 2024-09-27 at 11 25 38 AM

This PR will add a check to ensure that the image being inserted as markdown won't pass the content limit & the image preview will still be available for the user to click and try to re-insert the markdown once the post has been shortened.

Closes #508

Screen.Recording.2024-09-27.at.11.28.02.AM.mov

@nunomaduro nunomaduro merged commit 6c4f969 into pinkary-project:main Sep 30, 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.

Fix: handle image validation where the post is close to 1000 chars
4 participants