Dont load recordings for streams by default
This commit is contained in:
@ -149,12 +149,19 @@ public class NostrStreamManager : IStreamManager
|
||||
|
||||
await _context.Db.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
||||
public async Task UpdateEvent()
|
||||
{
|
||||
await UpdateStreamState(_context.UserStream.State);
|
||||
}
|
||||
|
||||
public async Task<List<UserStreamRecording>> GetRecordings()
|
||||
{
|
||||
return await _context.Db.Recordings.AsNoTracking()
|
||||
.Where(a => a.UserStreamId == _context.UserStream.Id)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task UpdateViewers()
|
||||
{
|
||||
if (_context.UserStream.State is not UserStreamState.Live) return;
|
||||
|
Reference in New Issue
Block a user