Fixed the url logic

This commit is contained in:
Jarian Cottingham 2025-10-14 14:52:42 -05:00
parent f8f269b0b4
commit b231e39d8c
2 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class ArchiveParser:
# Ensure we have all required fields with defaults # Ensure we have all required fields with defaults
post["id"] = str(uuid.uuid4()) # Generate a unique ID for each post post["id"] = str(uuid.uuid4()) # Generate a unique ID for each post
post["title"] = index.get("title", "Untitled Post") post["title"] = index.get("title", "Untitled Post")
post["url"] = index.get("url", "#") post["url"] = "http://archive2.home.ms/" + index.get("timestamp", "#")
# Set default image to reddit_logo.webp if no image is provided # Set default image to reddit_logo.webp if no image is provided
post["image"] = ( post["image"] = (