temaplte fixes in app and in plugin
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user