mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
update notifications
This commit is contained in:
@@ -1465,7 +1465,12 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
private void AddUserToQuery(InternalItemsQuery query, User user)
|
||||
{
|
||||
if (query.AncestorIds.Length == 0 && !query.ParentId.HasValue && query.ChannelIds.Length == 0 && query.TopParentIds.Length == 0 && string.IsNullOrWhiteSpace(query.AncestorWithPresentationUniqueKey))
|
||||
if (query.AncestorIds.Length == 0 &&
|
||||
!query.ParentId.HasValue &&
|
||||
query.ChannelIds.Length == 0 &&
|
||||
query.TopParentIds.Length == 0 &&
|
||||
string.IsNullOrWhiteSpace(query.AncestorWithPresentationUniqueKey)
|
||||
&& query.ItemIds.Length == 0)
|
||||
{
|
||||
var userViews = _userviewManager().GetUserViews(new UserViewQuery
|
||||
{
|
||||
|
||||
@@ -3152,17 +3152,17 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
}
|
||||
if (query.ItemIds.Length > 0)
|
||||
{
|
||||
var excludeIds = new List<string>();
|
||||
var includeIds = new List<string>();
|
||||
|
||||
var index = 0;
|
||||
foreach (var id in query.ItemIds)
|
||||
{
|
||||
excludeIds.Add("Guid = @IncludeId" + index);
|
||||
includeIds.Add("Guid = @IncludeId" + index);
|
||||
cmd.Parameters.Add(cmd, "@IncludeId" + index, DbType.Guid).Value = new Guid(id);
|
||||
index++;
|
||||
}
|
||||
|
||||
whereClauses.Add(string.Join(" OR ", excludeIds.ToArray()));
|
||||
whereClauses.Add(string.Join(" OR ", includeIds.ToArray()));
|
||||
}
|
||||
if (query.ExcludeItemIds.Length > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user