Fix: Empty markdown was never saved
This commit is contained in:
parent
eaa8cedd81
commit
f6f596f22f
|
@ -177,10 +177,14 @@ public function load(): void
|
|||
*/
|
||||
public function save(): void
|
||||
{
|
||||
$attachmentsSaved = $this->saveAttachments();
|
||||
$metadataSaved = $this->saveMetadata();
|
||||
$markdownSaved = $this->saveMarkdown();
|
||||
|
||||
if (
|
||||
$this->saveAttachments()
|
||||
|| $this->saveMetadata()
|
||||
|| $this->saveMarkdown()
|
||||
$attachmentsSaved
|
||||
|| $metadataSaved
|
||||
|| $markdownSaved
|
||||
) {
|
||||
$this->touch();
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ public function save(): bool
|
|||
return false;
|
||||
}
|
||||
|
||||
$this->disk->put($this->filename, $this->content);
|
||||
$this->disk->put($this->filename, $this->content ?? '');
|
||||
|
||||
$this->originalContent = $this->content;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user