Fixed the url logic
This commit is contained in:
parent
f8f269b0b4
commit
b231e39d8c
@ -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"] = (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user