Release Polish (#1586)
* Fixed a scaling issue in the epub reader, where images could scale when they shouldn't. * Removed some caching on library/ api and added more output for a foreign key constraint * Hooked in Restricted Profile stat collection * Added a new boolean on age restrictions to explicitly allow unknowns or not. Since unknown is the default state of metadata, if users are allowed access to Unknown, age restricted content could leak. * Fixed a bug where sometimes series cover generation could fail under conditions where only specials existed. * Fixed foreign constraint issue when cleaning up series not seen at end of scan loop * Removed an additional epub parse when scanning and handled merging differently * Code smell
This commit is contained in:
parent
78762a5626
commit
9149c4cbca
46 changed files with 2504 additions and 145 deletions
16
API/DTOs/Account/AgeRestrictionDto.cs
Normal file
16
API/DTOs/Account/AgeRestrictionDto.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.DTOs.Account;
|
||||
|
||||
public class AgeRestrictionDto
|
||||
{
|
||||
/// <summary>
|
||||
/// The maximum age rating a user has access to. -1 if not applicable
|
||||
/// </summary>
|
||||
public AgeRating AgeRating { get; set; } = AgeRating.NotApplicable;
|
||||
/// <summary>
|
||||
/// Are Unknowns explicitly allowed against age rating
|
||||
/// </summary>
|
||||
/// <remarks>Unknown is always lowest and default age rating. Setting this to false will ensure Teen age rating applies and unknowns are still filtered</remarks>
|
||||
public bool IncludeUnknowns { get; set; } = false;
|
||||
}
|
|
@ -20,5 +20,5 @@ public class InviteUserDto
|
|||
/// <summary>
|
||||
/// An Age Rating which will limit the account to seeing everything equal to or below said rating.
|
||||
/// </summary>
|
||||
public AgeRating AgeRestriction { get; set; }
|
||||
public AgeRestrictionDto AgeRestriction { get; set; }
|
||||
}
|
||||
|
|
|
@ -6,5 +6,7 @@ namespace API.DTOs.Account;
|
|||
public class UpdateAgeRestrictionDto
|
||||
{
|
||||
[Required]
|
||||
public AgeRating AgeRestriction { get; set; }
|
||||
public AgeRating AgeRating { get; set; }
|
||||
[Required]
|
||||
public bool IncludeUnknowns { get; set; }
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@ public record UpdateUserDto
|
|||
/// <summary>
|
||||
/// An Age Rating which will limit the account to seeing everything equal to or below said rating.
|
||||
/// </summary>
|
||||
public AgeRating AgeRestriction { get; init; }
|
||||
public AgeRestrictionDto AgeRestriction { get; init; }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue