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 | deb706418d0a312ca7bc468b973af5b25edd4b0d (patch) | |
tree | 16b312ae3052f9d0315829411ce0f1f1ddaa2656 /BackEnd/Timeline/Models/Mapper/TimelineMapper.cs | |
parent | 6a1298a89f29c61718bae6a57855219fad10af47 (diff) | |
download | timeline-deb706418d0a312ca7bc468b973af5b25edd4b0d.tar.gz timeline-deb706418d0a312ca7bc468b973af5b25edd4b0d.tar.bz2 timeline-deb706418d0a312ca7bc468b973af5b25edd4b0d.zip |
test: Add create post integrated tests.
Diffstat (limited to 'BackEnd/Timeline/Models/Mapper/TimelineMapper.cs')
-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)
|