[COMPONENTS][Posting][Link][Tag] Pass the note, not just the id in ProcessNoteContent

This commit is contained in:
2021-09-20 16:16:42 +01:00
parent 7926f18f93
commit 2f3f7b8469
3 changed files with 13 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ class Posting extends Component
DB::persist($note);
// Need file and note ids for the next step
Event::handle('ProcessNoteContent', [$note->getId(), $content, $content_type]);
Event::handle('ProcessNoteContent', [$note, $content, $content_type]);
DB::flush();
if ($processed_attachments != []) {