Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoToSocial Local-Only Posting Support #1047

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sgrigson
Copy link

@sgrigson sgrigson commented Feb 5, 2025

This is a feature that will allow people on GoToSocial to use Local-Only posting. Forgive me if this PR has missing stuff, as this is our first contribution to Phanpy. Note that I can't take credit for this PR or the code changes, but I have permission from the author to submit this PR.

Note that this same implemention should also work for Hometown, as both GoToSocial and Mastodon-Hometown do local-only posting the same way (Mastodon Glitch is a little different), however it was only enabled for GTS as we were only able to test it with GTS.

We have a version of this code running at https://1sland.social.

Issue reference: #784

Screenshots follow:

Local Tag
image

Compose
image

If you reply to a Local-Only post, the reply will select 'Local' rather than 'Federated' by default, so that users using Phanpy will automatically carry forward the local-only post settings for their replies.

Zarex and others added 7 commits February 4, 2025 21:14
- fix for a bug in supports.js that compares version
  number to regexes based on software backend name
- functionality to allow users on a GoToSocial instance
  to select "Local Instance Public" and "Local
  Instance Unlisted" options for Visibility in composer
- both options send their specified visibility, but
  with the local_only bool parameter set to true
- local posting is now specified with a different dropdown
  and has two options, federated and local-instance
- removed Local Instance Public and Local Instance Unlisted
  options from Visibility dropdown
- local posting control behaves like visibility wrt
  content warning control
- if replying to another post, the localOnly value is
  copied from the post being replied to
- Local Instance is more confusing generally than Local,
  the additional detail is not helpful
- Rebased on main and then rebuilt and this file was modified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants