aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-12 17:45:09 +0800
committercrupest <crupest@outlook.com>2021-02-12 17:45:09 +0800
commitb5b758c41a01ab7f78f0711debe92f6add470c64 (patch)
tree4544abd3305b4bef7bada9d286435a12293b57e2 /BackEnd/Timeline/Models
parent31e467d72bc9b3cc7a7bb8c5bec4d2998ca49916 (diff)
downloadtimeline-b5b758c41a01ab7f78f0711debe92f6add470c64.tar.gz
timeline-b5b758c41a01ab7f78f0711debe92f6add470c64.tar.bz2
timeline-b5b758c41a01ab7f78f0711debe92f6add470c64.zip
test: Add create post integrated tests.
Diffstat (limited to 'BackEnd/Timeline/Models')
-rw-r--r--BackEnd/Timeline/Models/Mapper/TimelineMapper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs b/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs
index 1f10c123..5c46fa81 100644
--- a/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs
+++ b/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs
@@ -71,7 +71,7 @@ namespace Timeline.Models.Mapper
await _database.Entry(entity).Collection(p => p.DataList).LoadAsync();
await _database.Entry(entity).Reference(e => e.Author).LoadAsync();
- List<HttpTimelinePostDataDigest> dataDigestList = entity.DataList.OrderBy(d => d.Index).Select(d => new HttpTimelinePostDataDigest(d.Kind, d.DataTag, d.LastUpdated)).ToList();
+ List<HttpTimelinePostDataDigest> dataDigestList = entity.DataList.OrderBy(d => d.Index).Select(d => new HttpTimelinePostDataDigest(d.Kind, $"\"{d.DataTag}\"", d.LastUpdated)).ToList();
HttpUser? author = null;
if (entity.Author is not null)