aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Mapper
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-31 15:42:52 +0800
committercrupest <crupest@outlook.com>2021-01-31 15:42:52 +0800
commit415a91f08422a9a18958552ec21a25f336ef81c4 (patch)
tree629e3603b421f3e5c777de5974608be9ff9c485e /BackEnd/Timeline/Models/Mapper
parent07ffcc6029158a2cee1e30250d0153dccccb13d0 (diff)
downloadtimeline-415a91f08422a9a18958552ec21a25f336ef81c4.tar.gz
timeline-415a91f08422a9a18958552ec21a25f336ef81c4.tar.bz2
timeline-415a91f08422a9a18958552ec21a25f336ef81c4.zip
...
Diffstat (limited to 'BackEnd/Timeline/Models/Mapper')
-rw-r--r--BackEnd/Timeline/Models/Mapper/TimelineMapper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs b/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs
index 95418573..79a6fa1d 100644
--- a/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs
+++ b/BackEnd/Timeline/Models/Mapper/TimelineMapper.cs
@@ -48,7 +48,7 @@ namespace Timeline.Models.Mapper
isBookmark: userId is not null && await _bookmarkTimelineService.IsBookmark(userId.Value, entity.Id, false, false),
links: new HttpTimelineLinks(
self: urlHelper.ActionLink(nameof(TimelineController.TimelineGet), nameof(TimelineController)[0..^nameof(Controller).Length], new { timeline = timelineName }),
- posts: urlHelper.ActionLink(nameof(TimelineController.PostListGet), nameof(TimelineController)[0..^nameof(Controller).Length], new { timeline = timelineName })
+ posts: urlHelper.ActionLink(nameof(TimelinePostController.PostList), nameof(TimelinePostController)[0..^nameof(Controller).Length], new { timeline = timelineName })
)
);
}
@@ -83,7 +83,7 @@ namespace Timeline.Models.Mapper
(
type: TimelinePostContentTypes.Image,
text: null,
- url: urlHelper.ActionLink(nameof(TimelineController.PostDataGet), nameof(TimelineController)[0..^nameof(Controller).Length], new { timeline = timelineName, post = entity.LocalId }),
+ url: urlHelper.ActionLink(nameof(TimelinePostController.PostDataGet), nameof(TimelinePostController)[0..^nameof(Controller).Length], new { timeline = timelineName, post = entity.LocalId }),
eTag: $"\"{entity.Content}\""
),
_ => throw new DatabaseCorruptedException(string.Format(CultureInfo.InvariantCulture, "Unknown timeline post type {0}.", entity.ContentType))