aboutsummaryrefslogtreecommitdiff
path: root/back-end/src/Model/BlogPost.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-09-30 21:43:19 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-09-30 21:43:19 -0400
commit95d60952b3ea470495003b0d0e51840cd8e68605 (patch)
tree79f5179c4dd9349c7b88b7b1d2ed13b53152d166 /back-end/src/Model/BlogPost.cs
parent62da31eb31baf7e27bf4c6d3d15e2c69617e2f74 (diff)
configure html podcast description support and minor ui tweaks
Diffstat (limited to 'back-end/src/Model/BlogPost.cs')
-rw-r--r--back-end/src/Model/BlogPost.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/back-end/src/Model/BlogPost.cs b/back-end/src/Model/BlogPost.cs
index 0adea40..86cc289 100644
--- a/back-end/src/Model/BlogPost.cs
+++ b/back-end/src/Model/BlogPost.cs
@@ -44,6 +44,11 @@ namespace Content.Publishing.Blog.Admin.Model
.IllegalCharacters()
.MaximumLength(200);
+ //Allow an custom html description to be stored on the post object
+ validator.RuleFor(x => x.HtmlDescription)
+ .MaximumLength(4000)
+ .When(p => p.HtmlDescription != null);
+
validator.RuleFor(x => x.Author!)
.NotEmpty()
.IllegalCharacters()