From 7e86e9ad97cd52236cb59c78f1dac96fefff9049 Mon Sep 17 00:00:00 2001 From: Amit Serper Date: Tue, 5 Dec 2023 07:36:44 -0500 Subject: [PATCH] Visibility of post set to unlisted to prevent spam of the local feed --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e9ad54c..a1f7bdc 100644 --- a/main.py +++ b/main.py @@ -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() \ No newline at end of file + check_and_post_new_items()