appa dn plugin udpates for integrationa dn final touches

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-13 09:23:54 +00:00
parent e053655962
commit d2b733640c
13 changed files with 236 additions and 337 deletions

View File

@@ -745,8 +745,9 @@ function igny8_map_wp_status_to_igny8($wp_status) {
@shared_task(bind=True, max_retries=3)
def publish_content_to_wordpress(self, content_id, ...):
try:
response = requests.post(wordpress_url, json=content_data, timeout=30)
if response.status_code == 201:
# Success
content.wordpress_sync_status = 'success'
content.save()