Skip to content

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
@filipesmedeiros
Copy link

This is great! Is this fork of yours public, by any chance?

@sgrigson
Copy link
Author

This is great! Is this fork of yours public, by any chance?

Yes! Though I hadn't expected this to languish here so long, it sat so long we need to update it to merge it back in. Not sure how that process works here, tbh.

https://github.com/Zarex/phanpy-local-only/tree/local-posting

@filipesmedeiros
Copy link

I think we just wait for the maintainer to review :P

@Fastidious
Copy link
Contributor

I have the feeling that @cheeaun might think this is too niche (which it seems to be) for implementation. Nothing wrong with forking with those changes, of course.

@filipesmedeiros
Copy link

filipesmedeiros commented May 14, 2025

@Fastidious I mean there's still other Mastodon-like servers that support this. Hometown and Glitch I believe

@sgrigson
Copy link
Author

Hometown uses the same approach, yes. Glitch uses the 'magic emoji' approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants