aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/TimelinePostController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-04 20:54:18 +0800
committercrupest <crupest@outlook.com>2021-02-04 20:54:18 +0800
commit1af0c82144a0f28f86922ecda04b159a553c699e (patch)
tree3c91d43eefce21b1f9812b0d753ae18394dc2247 /BackEnd/Timeline/Controllers/TimelinePostController.cs
parent78b3cca725bd508e248749eb3ca5cd6f3ea0f8ec (diff)
downloadtimeline-1af0c82144a0f28f86922ecda04b159a553c699e.tar.gz
timeline-1af0c82144a0f28f86922ecda04b159a553c699e.tar.bz2
timeline-1af0c82144a0f28f86922ecda04b159a553c699e.zip
...
Diffstat (limited to 'BackEnd/Timeline/Controllers/TimelinePostController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/TimelinePostController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Controllers/TimelinePostController.cs b/BackEnd/Timeline/Controllers/TimelinePostController.cs
index afe9b36f..6b7ba411 100644
--- a/BackEnd/Timeline/Controllers/TimelinePostController.cs
+++ b/BackEnd/Timeline/Controllers/TimelinePostController.cs
@@ -142,7 +142,7 @@ namespace Timeline.Controllers
{
return BadRequest(ErrorResponse.Common.CustomMessage_InvalidModel(Resources.Messages.TimelineController_TextContentTextRequired));
}
- post = await _postService.CreateTextPost(timelineId, userId, text, body.Time);
+ post = await _postService.CreateTextPost(timelineId, userId, text, new TimelinePostCommonProperties { Time = body.Time });
}
else if (content.Type == TimelinePostContentTypes.Image)
{
@@ -163,7 +163,7 @@ namespace Timeline.Controllers
try
{
- post = await _postService.CreateImagePost(timelineId, userId, data, body.Time);
+ post = await _postService.CreateImagePost(timelineId, userId, data, new TimelinePostCommonProperties { Time = body.Time });
}
catch (ImageException)
{