refactors
This commit is contained in:
@@ -151,9 +151,10 @@ def wordpress_status_webhook(request):
|
||||
if post_url:
|
||||
content.external_url = post_url
|
||||
|
||||
# Only update IGNY8 status if WordPress status changed from draft to publish
|
||||
if post_status == 'publish' and old_status != 'published':
|
||||
content.status = 'published'
|
||||
# FIXED: Always update status when WordPress status differs
|
||||
if content.status != igny8_status:
|
||||
content.status = igny8_status
|
||||
logger.info(f"[wordpress_status_webhook] Status updated: {old_status} → {content.status}")
|
||||
|
||||
# Update WordPress status in metadata
|
||||
if not content.metadata:
|
||||
|
||||
Reference in New Issue
Block a user