feat(plugins): add before channel/item hooks to allow podcast/episode data edit when generating rss

This commit is contained in:
Yassine Doghri 2024-05-17 14:01:04 +00:00
commit 80d2c48ee2
15 changed files with 44 additions and 27 deletions

View file

@ -187,7 +187,7 @@ class PluginController extends BaseController
$validatedData = $this->validator->getValidated();
foreach ($plugin->getSettingsFields('general') as $field) {
foreach ($plugin->getSettingsFields($type) as $field) {
$value = $validatedData[$field->key] ?? null;
$fieldValue = $value === '' ? null : match ($plugins::FIELDS_CASTS[$field->type] ?? 'text') {
'bool' => $value === 'yes',