diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-08-30 09:59:58 +0200 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2024-08-30 10:07:01 +0200 |
commit | 1e896a7307c01ec2520406abdf910b6444fb84ae (patch) | |
tree | fb82264ddf86acde36c89a9b699e6a903eb44ece /lib/private/TextProcessing | |
parent | a2b087421e588df936e4d8ef9648133d51d2da53 (diff) | |
download | nextcloud-server-1e896a7307c01ec2520406abdf910b6444fb84ae.tar.gz nextcloud-server-1e896a7307c01ec2520406abdf910b6444fb84ae.zip |
fix(TextProcessing): Don't run taskProcessing if task type is not available
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'lib/private/TextProcessing')
-rw-r--r-- | lib/private/TextProcessing/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextProcessing/Manager.php b/lib/private/TextProcessing/Manager.php index 52ca62eaede..9801a99ddec 100644 --- a/lib/private/TextProcessing/Manager.php +++ b/lib/private/TextProcessing/Manager.php @@ -116,7 +116,7 @@ class Manager implements IManager { SummaryTaskType::class => TextToTextSummary::ID, TopicsTaskType::class => TextToTextTopics::ID, ]; - if (isset($taskProcessingCompatibleTaskTypes[$taskTypeClass])) { + if (isset($taskProcessingCompatibleTaskTypes[$taskTypeClass]) && isset($this->taskProcessingManager->getAvailableTaskTypes()[$taskProcessingCompatibleTaskTypes[$taskTypeClass]])) { try { $taskProcessingTaskTypeId = $taskProcessingCompatibleTaskTypes[$taskTypeClass]; $taskProcessingTask = new \OCP\TaskProcessing\Task( |