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 9bca8c3a8f
commit 21e39117eb

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()