temaplte fixes in app and in plugin

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-10 06:17:38 +00:00
parent 975eab46cf
commit 9e785f141c
11 changed files with 311 additions and 173 deletions

View File

@@ -257,12 +257,16 @@ class WordPressAdapter(BaseAdapter):
featured_image_url = image_url
logger.info(f"[WordPressAdapter._publish_via_api_key] 🖼️ Featured image: {image_url[:80]}...")
elif image.image_type == 'in_article' and image_url:
is_featured = False # In-article images are never featured
gallery_images.append({
'url': image_url,
'alt': getattr(image, 'alt', '') or '',
'caption': getattr(image, 'caption', '') or ''
'caption': getattr(image, 'caption', '') or '',
'prompt': getattr(image, 'prompt', '') or '',
'position': getattr(image, 'position', 0),
'is_featured': is_featured
})
logger.info(f"[WordPressAdapter._publish_via_api_key] 🖼️ Gallery image {len(gallery_images)}")
logger.info(f"[WordPressAdapter._publish_via_api_key] 🖼️ Gallery image {len(gallery_images)} (pos={getattr(image, 'position', 0)}, prompt={bool(getattr(image, 'prompt', ''))})")
except Exception as e:
logger.warning(f"[WordPressAdapter._publish_via_api_key] ⚠️ Could not load images: {e}")