stop to try to write metadata on story (#4433)

This commit is contained in:
Aina Sitraka
2023-12-08 01:49:19 +03:00
committed by GitHub
parent cbb131d17d
commit f01c9a672c

View File

@@ -162,6 +162,9 @@ class RecordSubscriber implements EventSubscriberInterface
$databox = $this->getApplicationBox()->get_databox($databoxId);
$record = $databox->get_record($recordId);
// do not try to write meta on non story record
if (!$record->isStory()) {
$type = $record->getType();
$subdefGroupe = $record->getDatabox()->get_subdef_structure()->getSubdefGroup($record->getType());
@@ -211,6 +214,7 @@ class RecordSubscriber implements EventSubscriberInterface
}
}
}
}
public function onStoryCreateCover(StoryCreateCoverEvent $event)
{