Visibility of post set to unlisted to prevent spam of the local feed

This commit is contained in:
Amit Serper 2023-12-05 07:36:44 -05:00 committed by GitHub
parent 21a0768c8a
commit 7e86e9ad97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ def check_and_post_new_items():
status = f"\n{entry.title}\n\n{entry.link}"
# Post the status to Mastodon
mastodon.status_post(status)
mastodon.status_post(status, visibility="unlisted")
# Add the entry URL to the processed_entries set
processed_entries.add(entry_url)