diff options
author | crupest <crupest@outlook.com> | 2021-02-12 17:45:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-12 17:45:09 +0800 |
commit | b5b758c41a01ab7f78f0711debe92f6add470c64 (patch) | |
tree | 4544abd3305b4bef7bada9d286435a12293b57e2 /BackEnd/Timeline/Models/Mapper | |
parent | 31e467d72bc9b3cc7a7bb8c5bec4d2998ca49916 (diff) | |
download | timeline-b5b758c41a01ab7f78f0711debe92f6add470c64.tar.gz timeline-b5b758c41a01ab7f78f0711debe92f6add470c64.tar.bz2 timeline-b5b758c41a01ab7f78f0711debe92f6add470c64.zip |
test: Add create post integrated tests.
Diffstat (limited to 'BackEnd/Timeline/Models/Mapper')
-rw-r--r-- | BackEnd/Timeline/Models/Mapper/TimelineMapper.cs | 2 |
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)
|