Mastodon: Set visibility in replies as unlisted by default. Closes #504

This commit is contained in:
2023-01-29 13:11:34 -06:00
parent 97d4fea563
commit fd176f92d3
2 changed files with 4 additions and 1 deletions

View File

@@ -333,7 +333,9 @@ class BaseBuffer(base.Buffer):
users_str = "".join(users)
post = messages.post(session=self.session, title=title, caption=caption, text=users_str)
visibility_settings = dict(public=0, unlisted=1, private=2, direct=3)
post.message.visibility.SetSelection(visibility_settings.get(visibility))
# Set unlisted by default, so we will not clutter other user's buffers with replies.
# see https://github.com/MCV-Software/TWBlue/issues/504
post.message.visibility.SetSelection(visibility_settings.get("unlisted"))
# Respect content warning settings.
if item.sensitive:
post.message.sensitive.SetValue(item.sensitive)