This commit is contained in:
2025-09-26 10:27:33 -04:00
parent 8da7bb8152
commit 5167f3563d

View File

@@ -18,7 +18,7 @@ def convert_ghost_to_discord(ghost_payload):
return { return {
"embeds": [{ "embeds": [{
"title": post.get("title"), "title": post.get("title"),
"description": post.get("excerpt")[:200] + "...", "description": post.get("excerpt", "")[:200] + "...",
"url": f"https://torrtle.co/{post.get('slug')}", "url": f"https://torrtle.co/{post.get('slug')}",
"color": "0x00ff00", "color": "0x00ff00",
"thumbnail": { "thumbnail": {
@@ -27,7 +27,7 @@ def convert_ghost_to_discord(ghost_payload):
"fields": [ "fields": [
{ {
"name": "Author", "name": "Author",
"value": post.get("primary_author").get("name"), "value": post.get("primary_author", {}).get("name","simbob"),
"inline": True "inline": True
}, },
{ {