yo
This commit is contained in:
4
main.py
4
main.py
@@ -18,7 +18,7 @@ def convert_ghost_to_discord(ghost_payload):
|
||||
return {
|
||||
"embeds": [{
|
||||
"title": post.get("title"),
|
||||
"description": post.get("excerpt")[:200] + "...",
|
||||
"description": post.get("excerpt", "")[:200] + "...",
|
||||
"url": f"https://torrtle.co/{post.get('slug')}",
|
||||
"color": "0x00ff00",
|
||||
"thumbnail": {
|
||||
@@ -27,7 +27,7 @@ def convert_ghost_to_discord(ghost_payload):
|
||||
"fields": [
|
||||
{
|
||||
"name": "Author",
|
||||
"value": post.get("primary_author").get("name"),
|
||||
"value": post.get("primary_author", {}).get("name","simbob"),
|
||||
"inline": True
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user