diff options
author | crupest <crupest@outlook.com> | 2021-01-07 22:10:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-07 22:10:58 +0800 |
commit | 04186d5f1091266b85758d4b4255c6a7c1b498f6 (patch) | |
tree | 2ca5678d575eae81f71220896a9862468c93fcc3 /BackEnd/Timeline/Controllers/TimelineController.cs | |
parent | 532c6ccd3498a0daabb3d6dbe3f0348f4b2d6a1f (diff) | |
download | timeline-04186d5f1091266b85758d4b4255c6a7c1b498f6.tar.gz timeline-04186d5f1091266b85758d4b4255c6a7c1b498f6.tar.bz2 timeline-04186d5f1091266b85758d4b4255c6a7c1b498f6.zip |
feat: Timeline info contains bookmark and highlight flag.
Diffstat (limited to 'BackEnd/Timeline/Controllers/TimelineController.cs')
-rw-r--r-- | BackEnd/Timeline/Controllers/TimelineController.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/BackEnd/Timeline/Controllers/TimelineController.cs b/BackEnd/Timeline/Controllers/TimelineController.cs index efc49952..b2e37b15 100644 --- a/BackEnd/Timeline/Controllers/TimelineController.cs +++ b/BackEnd/Timeline/Controllers/TimelineController.cs @@ -109,7 +109,7 @@ namespace Timeline.Controllers }
var timelines = await _service.GetTimelines(relationship, visibilityFilter);
- var result = await _timelineMapper.MapToHttp(timelines, Url);
+ var result = await _timelineMapper.MapToHttp(timelines, Url, this.GetOptionalUserId());
return result;
}
@@ -168,7 +168,7 @@ namespace Timeline.Controllers else
{
var t = await _service.GetTimeline(timelineId);
- var result = await _timelineMapper.MapToHttp(t, Url);
+ var result = await _timelineMapper.MapToHttp(t, Url, this.GetOptionalUserId());
return result;
}
}
@@ -363,7 +363,7 @@ namespace Timeline.Controllers }
await _service.ChangeProperty(timelineId, _mapper.Map<TimelineChangePropertyParams>(body));
var t = await _service.GetTimeline(timelineId);
- var result = await _timelineMapper.MapToHttp(t, Url);
+ var result = await _timelineMapper.MapToHttp(t, Url, this.GetOptionalUserId());
return result;
}
@@ -448,7 +448,7 @@ namespace Timeline.Controllers try
{
var timeline = await _service.CreateTimeline(body.Name, userId);
- var result = await _timelineMapper.MapToHttp(timeline, Url);
+ var result = await _timelineMapper.MapToHttp(timeline, Url, this.GetOptionalUserId());
return result;
}
catch (EntityAlreadyExistException e) when (e.EntityName == EntityNames.Timeline)
@@ -507,7 +507,7 @@ namespace Timeline.Controllers {
await _service.ChangeTimelineName(timelineId, body.NewName);
var timeline = await _service.GetTimeline(timelineId);
- return await _timelineMapper.MapToHttp(timeline, Url);
+ return await _timelineMapper.MapToHttp(timeline, Url, this.GetOptionalUserId());
}
catch (EntityAlreadyExistException)
{
|