From 0928c700f711cedf287e4b62168559d86c19a894 Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Thu, 1 Dec 2022 21:32:36 -0800 Subject: [PATCH] Updated Local only posting (markdown) --- Local-only-posting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Local-only-posting.md b/Local-only-posting.md index f8c12df..cadb7ed 100644 --- a/Local-only-posting.md +++ b/Local-only-posting.md @@ -51,6 +51,10 @@ As of Hometown v1.0.4 (released May 17, 2020), if you use a 3rd party app like [ * If you reply to a local-only post, your reply will be local-only. * If you reply to a federated post, then your reply will be federated. This means that you can still chat with people on other servers even if you're set to local-only by default. +### API exposure for 3rd party clients + +As of Hometown v1.0.8, you can access the `api/v1/preferences` endpoint (with appropriate permissions as usual) and you will get a `posting:default:federation` key in the object that is returned. If the value is `true`, then the user has their posts set to federate by default and any "local-only" posting toggle should be set to federate when the user goes to compose a brand new post. If the value is `false` then the user has their posts set to local-only by default and any "local-only" posting toggle should be set to NOT federate when the user goes to compose a brand new post. + ## Who This feature is based on [the work of Renato Lond](https://github.com/tootsuite/mastodon/pull/8427), which is itself based on a feature in the [Mastodon Glitch Edition](https://glitch-soc.github.io/docs/) fork. Third party application interactions were redesigned based on the suggestions of [@lostfictions](https://github.com/lostfictions). The idea for an emoji triggering a local post comes from Mastodon Glitch Edition, and the idea for it to be a custom emoji called `local_only` comes from [@t54r4n1@mspsocial.net](https://mspsocial.net/@t54r4n1). \ No newline at end of file