try
This commit is contained in:
+2
-2
@@ -517,7 +517,7 @@ def post_to_wp(
|
||||
"""
|
||||
try:
|
||||
# Get WordPress credentials from environment
|
||||
wp_url = "https://insiderfoodie.com"
|
||||
wp_url = "https://insiderfoodie.com/xmlrpc.php" # Updated XML-RPC endpoint
|
||||
wp_username = author["username"]
|
||||
wp_password = os.getenv(f"{wp_username.upper()}_PASSWORD")
|
||||
|
||||
@@ -577,7 +577,7 @@ def post_to_wp(
|
||||
|
||||
if result and 'id' in result:
|
||||
post_id = result['id']
|
||||
post_url = f"{wp_url}/?p={post_id}"
|
||||
post_url = f"https://insiderfoodie.com/?p={post_id}"
|
||||
logger.info(f"Successfully posted to WordPress (ID: {post_id})")
|
||||
return post_id, post_url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user