improve validation of seach content
This commit is contained in:
@ -57,14 +57,11 @@ namespace Oqtane.Modules.Admin.Files.Manager
|
||||
EntityName = EntityNames.File,
|
||||
EntityId = file.FileId.ToString(),
|
||||
Title = path,
|
||||
Description = string.Empty,
|
||||
Body = body,
|
||||
Url = $"{Constants.FileUrl}{folder.Path}{file.Name}",
|
||||
Permissions = $"{EntityNames.Folder}:{folder.FolderId}",
|
||||
ContentModifiedBy = file.ModifiedBy,
|
||||
ContentModifiedOn = file.ModifiedOn,
|
||||
AdditionalContent = string.Empty,
|
||||
CreatedOn = DateTime.UtcNow,
|
||||
IsDeleted = (removed || file.IsDeleted.Value)
|
||||
};
|
||||
searchContents.Add(searchContent);
|
||||
|
@ -61,8 +61,6 @@ namespace Oqtane.Modules.HtmlText.Manager
|
||||
{
|
||||
searchContents.Add(new SearchContent
|
||||
{
|
||||
Title = pageModule.Module.Title,
|
||||
Description = string.Empty,
|
||||
Body = htmltext.Content,
|
||||
ContentModifiedBy = htmltext.CreatedBy,
|
||||
ContentModifiedOn = htmltext.CreatedOn
|
||||
|
Reference in New Issue
Block a user