-
Notifications
You must be signed in to change notification settings - Fork 1
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
Link previews with validation errors are silently discarded #6
Comments
Maybe we should throw a Yii::warning in such cases? |
@luke- I cannot understand how this module should work. I run
This is a single package so if we will remove I don't see a reason to keep the |
@yurabakhtin I fixed the problem with the Composer Json, seems that ComposerV2 had a problem with the capitalization of the package name. Can you try a composer install again? |
@luke- Yes, in my previous comment I forgot to report about the issue in |
@yurabakhtin Yes, I think we can delete the package.json file. Does the module work for you now? |
@luke- Yes, the problem was in redirect URL on the server side of the URL, for example, the url |
@luke- I have implemented to display the validation errors after fetching an URL: MR https://git.humhub.org/modules/linkpreview/-/merge_requests/1 |
@yurabakhtin Thanks & Merged |
If a link preview record fails validation, for example because a URL is longer than 255 characters, the preview is silently discarded upon submitting the post.
This can be especially bewildering if the troublesome URL is for the preview image, over which the user has no control.
The text was updated successfully, but these errors were encountered: