small fix to publishing date in mastodon post
This commit is contained in:
parent
956379d409
commit
3f867429e6
2 changed files with 6 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -5,6 +5,11 @@ config.yml
|
|||
posts/
|
||||
sentences/
|
||||
|
||||
# Apple
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
2
main.py
2
main.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue