Fix auto-export logic: Update draft status check to use 'type' instead of 'status' for correct functionality.
This commit is contained in:
1 parent
5cd322446a
commit
feefb08a85
1 file changed
+2
-2
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user