FairPlaySocial icon indicating copy to clipboard operation
FairPlaySocial copied to clipboard

Post Text Hashtags validation is causing an exception

Open efonsecab opened this issue 1 year ago • 0 comments

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 avatar Jan 26 '23 18:01 efonsecab