Add OBS podcast ingestion and account withdrawal privacy controls
Support scoped RTMPS publishing through MediaMTX, authenticated replay, resource accounting and PostIt activation/revocation. Close withdrawn accounts, erase managed files and purge eligible payment residues after one year. Include migrations, documentation and regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
97b350be2d
commit
b157dce4e4
54 changed files with 12996 additions and 50 deletions
|
|
@ -74,7 +74,7 @@ namespace Yavsc.Services
|
|||
var subjectId = GetSubjectId(context.Subject);
|
||||
if (subjectId == null) return;
|
||||
var user = await _userManager.FindByIdAsync(subjectId);
|
||||
if (user == null) return;
|
||||
if (user == null || user.WithdrawalRequestedAt is not null) return;
|
||||
context.IssuedClaims = await GetClaimsFromUserAsync(context, user);
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ namespace Yavsc.Services
|
|||
return;
|
||||
}
|
||||
var user = await _userManager.FindByIdAsync(subjectId);
|
||||
context.IsActive = user != null;
|
||||
context.IsActive = user != null && user.WithdrawalRequestedAt is null;
|
||||
}
|
||||
|
||||
private static string? GetSubjectId(ClaimsPrincipal claimsPrincipal)
|
||||
|
|
|
|||
Loading…
Reference in a new issue