From 1af0c82144a0f28f86922ecda04b159a553c699e Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 4 Feb 2021 20:54:18 +0800 Subject: ... --- BackEnd/Timeline/Controllers/TimelinePostController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BackEnd/Timeline/Controllers/TimelinePostController.cs') 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) { -- cgit v1.2.3