-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add support for local instance posts #657
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
A new platform feature is defined, `@akkoma/local-only`, which is marked as present only if the string `akkoma` is found in the instance version string. If this feature is supported, a new post visibility option is added to the post compose visibility selector, "Local instance", which sets the visibility to `"local"`. The post viewer is also updated accordingly; while local-only posts could already be seen previously, they didn't have anything written in the `.extra-meta` section, and didn't display a visibility icon. The `building` icon has been selected as the symbol for "Local instance" posts, as it's already used in the main menu to denote the Local timeline.
a887388
to
67cce5b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Added support for pleroma ! |
How would you like me to resolve merge conflicts in |
Yes please, else the merge is blocked. |
…only # Conflicts: # src/locales/en.po
Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
…ariants Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
…l-only # Conflicts: # src/locales/en.po
Reposting this here... I don't have an account on Misskey to confirm it's available there (and I'm not even sure it's compatible with the Mastodon API in first place), but I had a Firefish instance, and I've had a test account on an Iceshrimp one, and there "Local" is an on-off toggle separate from visibility: On Firefish and Iceshrimp
|
Not sure about Hometown either; I don't have any instances close to my bubble running it... |
I'm on a Hometown server, and yes, it's an on-off toggle separate from visibility. It is the same in Mastodon Glitch. Would love to have support for this built into Phanpy; what would it require? @Steffo99 |
Implementing the toggle shouldn't be difficult, but we'd need to know where to put it... What do you think, @cheeaun? |
let's move the discussion to #784 |
A new platform feature is defined,
@pleroma/local-only
, which is marked as present only if the stringakkoma
or the stringpleroma
is found in the instance version string.Note
The instance version string of the two is:
X.Y.Z (compatible; Akkoma M.N.O)
X.Y.Z (compatible; Pleroma M.N.O)
If this feature is supported, a new post visibility option is added to the post compose visibility selector, "Local instance", which sets the visibility to
"local"
.The post viewer is also updated accordingly; while local-only posts could already be seen previously, they didn't have anything written in the
.extra-meta
section, and didn't display a visibility icon.The
building
icon has been selected as the symbol for "Local instance" posts, as it's already used in the main menu to denote the Local timeline.