gotosocial/web/source
tobi dcfc9b7885 [feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315)
This pull request implements two new properties on ActivityPub actors: `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb`.

As documented, these properties allow actors to signal their preference for whether or not their posts should be hidden from unauthenticated web views (ie., web pages like the GtS frontend, web apps like the Mastodon frontend, web APIs like the Mastodon public timeline API, etc). This allows remote accounts to *opt in* to having their unlisted visibility posts shown in (for example) the replies section of the web view of a GtS thread. In future, we can also use these properties to determine whether we should show boosts of a remote actor's post on a GtS profile, and that sort of thing.

In keeping with our stance around privacy by default, GtS assumes `true` for `hidesCcPublicFromUnauthedWeb` if the property is not set on a remote actor, ie., hide unlisted/unlocked posts by default. `hidesToPublicFromUnauthedWeb` is assumed to be `false` if the property is not set on a remote actor, ie., show public posts by default.

~~WIP as I still want to work on the documentation for this a bit.~~

New props are already in the namespace document: https://gotosocial.org/ns

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4315
Reviewed-by: kim <gruf@noreply.codeberg.org>
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-07-09 16:50:25 +02:00
..
css [bugfix/accessibility] Don't remove marker from unordered lists, recolor instead (#4268) 2025-06-13 14:22:56 +02:00
frontend [feature/frontend] Respect color scheme preference for highlighted code blocks (#4201) 2025-05-30 11:06:08 +02:00
frontend_prerender [feature] Update attachment format, receive + send focalPoint prop + use it on the frontend (#4052) 2025-04-26 15:03:05 +02:00
nollamas [feature] make client-side nonce calculation multi-threaded (#4219) 2025-05-31 13:45:32 +02:00
nollamasworker [feature] make client-side nonce calculation multi-threaded (#4219) 2025-05-31 13:45:32 +02:00
settings [feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315) 2025-07-09 16:50:25 +02:00
.browserslistrc [chore] Bundler restructure (#880) 2022-10-03 16:46:38 +02:00
.eslintignore [chore] more NoLLaMas proof-of-work tweaking (#4096) 2025-05-03 16:45:25 +00:00
.eslintrc.js [chore] Convert some settings / admin panel JS to TypeScript (#2247) 2023-10-05 16:06:19 +02:00
.gitignore [chore] Convert some settings / admin panel JS to TypeScript (#2247) 2023-10-05 16:06:19 +02:00
.license-header.js update license headers (#1612) 2023-03-12 17:49:06 +00:00
index.js [feature] proof of work scraper deterrence (#4043) 2025-04-28 20:12:27 +00:00
package.json [feature] Add "Instance Info" settings panel section, with domain blocks + allows (#4193) 2025-05-26 13:28:55 +02:00
tsconfig.json [feature/frontend] Add debug sections to settings panel (#2950) 2024-06-03 11:20:53 +02:00
yarn.lock [feature] Add "Instance Info" settings panel section, with domain blocks + allows (#4193) 2025-05-26 13:28:55 +02:00