Only post the article if it hasn't been already
This commit is contained in:
parent
3c7dc2e299
commit
943af2f10b
1 changed files with 10 additions and 9 deletions
|
@ -128,6 +128,7 @@ with Session(engine) as session:
|
||||||
.attrs["content"]
|
.attrs["content"]
|
||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
|
if not article_record.post_id:
|
||||||
mastodon_post_result = mastodon.status_post(
|
mastodon_post_result = mastodon.status_post(
|
||||||
status=article_description
|
status=article_description
|
||||||
+ "\n"
|
+ "\n"
|
||||||
|
|
Loading…
Reference in a new issue