Fix auto-export logic: Update draft status check to use 'type' instead of 'status' for correct functionality.

This commit is contained in:
interlope committed 2026-06-08 20:02:17 +02:00
1 parent 5cd322446a
commit feefb08a85
1 file changed
+2 -2
+2 -2
View File
@@ -96,7 +96,7 @@ class pluginBluditGithub extends Plugin
return;
}
$page = new Page($key);
$isDraft = $page->getValue('status') === 'draft';
$isDraft = $page->getValue('type') === 'draft';
$shouldAutoExport = $isDraft ? $this->getValue('exportDraftsAuto') : $this->getValue('exportPublishedAuto');
if ($shouldAutoExport) {
@@ -114,7 +114,7 @@ class pluginBluditGithub extends Plugin
return;
}
$page = new Page($key);
$isDraft = $page->getValue('status') === 'draft';
$isDraft = $page->getValue('type') === 'draft';
$shouldAutoExport = $isDraft ? $this->getValue('exportDraftsAuto') : $this->getValue('exportPublishedAuto');
if ($shouldAutoExport) {