yo
This commit is contained in:
4
main.py
4
main.py
@@ -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
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user