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

Post Text Hashtags validation is causing an exception #144

Open
efonsecab opened this issue Jan 26, 2023 · 0 comments
Open

Post Text Hashtags validation is causing an exception #144

efonsecab opened this issue Jan 26, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@efonsecab
Copy link
Contributor

The "CreatePostModel" hashtags validation on the Text property is throwing an exception.
To solve the issue do the following
In the CreatePostModel class, in the Text propert, remove this line

  • ErrorMessage = "Text cannot contain HashTags"

For the ProhibitUrls, remove this line
ErrorMessage = "Text cannot contain Urls"

Additionally, go to the CreatePostModelLocalizer.TextProhibitUrlsTextKey and change the default Resource Key value to "Text cannot have urls", it currently says hashtags instead of urls

@efonsecab efonsecab added bug Something isn't working good first issue Good for newcomers labels Jan 26, 2023
@efonsecab efonsecab added this to the Core Functionality milestone Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

1 participant