diff options
author | crupest <crupest@outlook.com> | 2020-02-04 18:02:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-02-04 18:02:39 +0800 |
commit | 3cbb2e7ef4bb2ccbbaadd18e49e2de392d6db2e1 (patch) | |
tree | 458d802973d4768e4bd5d463540608404b86c309 /Timeline/Controllers/PersonalTimelineController.cs | |
parent | e5cf0da3976116cd575e884fb8f191f225fe9301 (diff) | |
download | timeline-3cbb2e7ef4bb2ccbbaadd18e49e2de392d6db2e1.tar.gz timeline-3cbb2e7ef4bb2ccbbaadd18e49e2de392d6db2e1.tar.bz2 timeline-3cbb2e7ef4bb2ccbbaadd18e49e2de392d6db2e1.zip |
Add get timeline list feature.
Diffstat (limited to 'Timeline/Controllers/PersonalTimelineController.cs')
-rw-r--r-- | Timeline/Controllers/PersonalTimelineController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Controllers/PersonalTimelineController.cs b/Timeline/Controllers/PersonalTimelineController.cs index b6c213d9..cef04a97 100644 --- a/Timeline/Controllers/PersonalTimelineController.cs +++ b/Timeline/Controllers/PersonalTimelineController.cs @@ -28,7 +28,7 @@ namespace Timeline.Controllers [HttpGet("users/{username}/timeline")]
public async Task<ActionResult<TimelineInfo>> TimelineGet([FromRoute][Username] string username)
{
- return (await _service.GetTimeline(username)).FillLinksForPersonalTimeline(Url);
+ return (await _service.GetTimeline(username)).FillLinks(Url);
}
[HttpGet("users/{username}/timeline/posts")]
@@ -84,7 +84,7 @@ namespace Timeline.Controllers return StatusCode(StatusCodes.Status403Forbidden, ErrorResponse.Common.Forbid());
}
await _service.ChangeProperty(username, body);
- var timeline = (await _service.GetTimeline(username)).FillLinksForPersonalTimeline(Url);
+ var timeline = (await _service.GetTimeline(username)).FillLinks(Url);
return Ok(timeline);
}
|