small fix to publishing date in mastodon post

This commit is contained in:
Daniel Spittank 2023-11-05 23:30:13 +01:00
parent 956379d409
commit 3f867429e6
2 changed files with 6 additions and 1 deletions

5
.gitignore vendored
View file

@ -5,6 +5,11 @@ config.yml
posts/
sentences/
# Apple
.DS_Store
.AppleDouble
.LSOverride
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/

View file

@ -64,7 +64,7 @@ def mastodon_post(text, text_hash, entry, audio_file_path):
if cfg["mastodon"]["post"]["text"]:
status += text
if cfg["mastodon"]["post"]["date"]:
status += " " + entry.pubdate
status += " " + entry.published
if cfg["mastodon"]["post"]["link"]:
status += " Quelle: " + entry.link