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
commitdeb706418d0a312ca7bc468b973af5b25edd4b0d (patch)
tree16b312ae3052f9d0315829411ce0f1f1ddaa2656 /BackEnd/Timeline/Models
parent6a1298a89f29c61718bae6a57855219fad10af47 (diff)
downloadtimeline-deb706418d0a312ca7bc468b973af5b25edd4b0d.tar.gz
timeline-deb706418d0a312ca7bc468b973af5b25edd4b0d.tar.bz2
timeline-deb706418d0a312ca7bc468b973af5b25edd4b0d.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)