Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/809651ceafb2874dca7fced6d357ed140b068810
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
25 additions and
3 deletions
@ -1,5 +1,6 @@
#pragma warning disable CS1591
using System ;
using System.Linq ;
using Jellyfin.Data ;
using Jellyfin.Data.Entities ;
@ -133,6 +134,18 @@ namespace Jellyfin.Server.Implementations
return base . SaveChanges ( ) ;
}
/// <inheritdoc/>
public override void Dispose ( )
{
foreach ( var entry in ChangeTracker . Entries ( ) )
{
entry . State = EntityState . Detached ;
}
GC . SuppressFinalize ( this ) ;
base . Dispose ( ) ;
}
/// <inheritdoc />
protected override void OnConfiguring ( DbContextOptionsBuilder optionsBuilder )
{
@ -102,7 +102,16 @@ namespace Jellyfin.Server.Implementations.Users
}
/// <inheritdoc/>
public IEnumerable < Guid > UsersIds = > _dbProvider . CreateContext ( ) . Users . Select ( u = > u . Id ) ;
public IEnumerable < Guid > UsersIds
{
get
{
using var dbContext = _dbProvider . CreateContext ( ) ;
return dbContext . Users
. Select ( user = > user . Id )
. ToList ( ) ;
}
}
/// <inheritdoc/>
public User ? GetUserById ( Guid id )
@ -637,7 +646,7 @@ namespace Jellyfin.Server.Implementations.Users
/// <inheritdoc/>
public void UpdateConfiguration ( Guid userId , UserConfiguration config )
{
var dbContext = _dbProvider . CreateContext ( ) ;
using var dbContext = _dbProvider . CreateContext ( ) ;
var user = dbContext . Users
. Include ( u = > u . Permissions )
. Include ( u = > u . Preferences )
@ -670,7 +679,7 @@ namespace Jellyfin.Server.Implementations.Users
/// <inheritdoc/>
public void UpdatePolicy ( Guid userId , UserPolicy policy )
{
var dbContext = _dbProvider . CreateContext ( ) ;
using var dbContext = _dbProvider . CreateContext ( ) ;
var user = dbContext . Users
. Include ( u = > u . Permissions )
. Include ( u = > u . Preferences )