Visibility of post set to unlisted to prevent spam of the local feed
This commit is contained in:
parent
21a0768c8a
commit
7e86e9ad97
4
main.py
4
main.py
@ -58,7 +58,7 @@ def check_and_post_new_items():
|
|||||||
status = f"\n{entry.title}\n\n{entry.link}"
|
status = f"\n{entry.title}\n\n{entry.link}"
|
||||||
|
|
||||||
# Post the status to Mastodon
|
# Post the status to Mastodon
|
||||||
mastodon.status_post(status)
|
mastodon.status_post(status, visibility="unlisted")
|
||||||
|
|
||||||
# Add the entry URL to the processed_entries set
|
# Add the entry URL to the processed_entries set
|
||||||
processed_entries.add(entry_url)
|
processed_entries.add(entry_url)
|
||||||
@ -71,4 +71,4 @@ def check_and_post_new_items():
|
|||||||
time.sleep(int(CHECK_INTERVAL))
|
time.sleep(int(CHECK_INTERVAL))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
check_and_post_new_items()
|
check_and_post_new_items()
|
||||||
|
Loading…
Reference in New Issue
Block a user