aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-11-09 23:44:20 +0800
committer杨宇千 <crupest@outlook.com>2019-11-09 23:44:20 +0800
commitea8d82143c07afb38767d6afb4be0031452495fb (patch)
tree459d6c9131122c87a870ad18ff2ac297481beb46 /Timeline/Models
parent976d6158e67e79e9d6d7e140f5749aa6630d0fb6 (diff)
downloadtimeline-ea8d82143c07afb38767d6afb4be0031452495fb.tar.gz
timeline-ea8d82143c07afb38767d6afb4be0031452495fb.tar.bz2
timeline-ea8d82143c07afb38767d6afb4be0031452495fb.zip
Add PersonalTimelineController PostOperationCreate unit tests.
Diffstat (limited to 'Timeline/Models')
-rw-r--r--Timeline/Models/Http/Timeline.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs
index f676afa0..06b88ad1 100644
--- a/Timeline/Models/Http/Timeline.cs
+++ b/Timeline/Models/Http/Timeline.cs
@@ -9,7 +9,7 @@ namespace Timeline.Models.Http
{
public class TimelinePostCreateRequest
{
- [Required(AllowEmptyStrings = false)]
+ [Required(AllowEmptyStrings = true)]
public string Content { get; set; } = default!;
public DateTime? Time { get; set; }