gotosocial/internal/processing
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
..
account [feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315) 2025-07-09 16:50:25 +02:00
admin [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
advancedmigrations [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
application [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
common [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
conversations [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
fedi [bugfix] Fix nil ptr dereffing instance acct outbox (#4267) 2025-06-13 14:08:25 +02:00
filters [performance] add statusfilter cache to cache calculated status filtering results (#4303) 2025-07-01 16:00:04 +02:00
interactionrequests [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
list [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
markers [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
media [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
polls [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
push [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
report [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
search [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
status [chore] update error message (#4311) 2025-07-06 13:11:18 +02:00
stream [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
tags [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
timeline [feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315) 2025-07-09 16:50:25 +02:00
user [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
workers [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
followrequest_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
instance.go [feature] Allow exposing allows, implement /api/v1/domain_blocks and /api/v1/domain_allows (#4169) 2025-05-20 11:47:40 +02:00
oauth.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
parsemention.go [bugfix] Fix no notification if mention edited into status (#4102) 2025-05-04 09:45:10 +00:00
parsemention_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
preferences.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
preferences_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
processor.go [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00
processor_test.go [chore] move status filtering from type converter (#4306) 2025-07-04 15:30:39 +02:00