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)
@ -71,4 +71,4 @@ def check_and_post_new_items():
time.sleep(int(CHECK_INTERVAL))
if __name__ == "__main__":
check_and_post_new_items()
check_and_post_new_items()