mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-06 06:45:18 -04:00
Koreader Progress Sync for all files (#4323)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
@@ -29,13 +29,15 @@ public class WantToReadController : BaseApiController
|
||||
private readonly IUnitOfWork _unitOfWork;
|
||||
private readonly IScrobblingService _scrobblingService;
|
||||
private readonly ILocalizationService _localizationService;
|
||||
private readonly ISeriesService _seriesService;
|
||||
|
||||
public WantToReadController(IUnitOfWork unitOfWork, IScrobblingService scrobblingService,
|
||||
ILocalizationService localizationService)
|
||||
ILocalizationService localizationService, ISeriesService seriesService)
|
||||
{
|
||||
_unitOfWork = unitOfWork;
|
||||
_scrobblingService = scrobblingService;
|
||||
_localizationService = localizationService;
|
||||
_seriesService = seriesService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -52,6 +54,9 @@ public class WantToReadController : BaseApiController
|
||||
var wantToReadForUser = userId ?? UserId;
|
||||
userParams ??= new UserParams();
|
||||
|
||||
// Add profile privacy filter
|
||||
filterDto.Statements.AddRange(await _seriesService.GetProfilePrivacyStatements(wantToReadForUser, UserId));
|
||||
|
||||
var pagedList = await _unitOfWork.SeriesRepository.GetWantToReadForUserV2Async(wantToReadForUser, userParams, filterDto);
|
||||
Response.AddPaginationHeader(pagedList.CurrentPage, pagedList.PageSize, pagedList.TotalCount, pagedList.TotalPages);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user