mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
feat(plugins): add before channel/item hooks to allow podcast/episode data edit when generating rss
This commit is contained in:
parent
8ec79097bb
commit
80d2c48ee2
15 changed files with 44 additions and 27 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue