diff options
| author | 2025-07-09 16:50:25 +0200 | |
|---|---|---|
| committer | 2025-07-09 16:50:25 +0200 | |
| commit | dcfc9b7885e7ed4f7886a35ccb3e007c293d3521 (patch) | |
| tree | 3bef2a25b9c8178bdfbece05a5165c94a5a7ae03 /vendor/modules.txt | |
| parent | [performance] use our own typed value context types for Value() key checking ... (diff) | |
| download | gotosocial-dcfc9b7885e7ed4f7886a35ccb3e007c293d3521.tar.xz | |
[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>
Diffstat (limited to 'vendor/modules.txt')
| -rw-r--r-- | vendor/modules.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/modules.txt b/vendor/modules.txt index d79bcfd15..119caf2fb 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# code.superseriousbusiness.org/activity v1.15.1 +# code.superseriousbusiness.org/activity v1.16.0 ## explicit; go 1.23 code.superseriousbusiness.org/activity/pub code.superseriousbusiness.org/activity/streams @@ -146,6 +146,8 @@ code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannou code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget @@ -166,6 +168,7 @@ code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthori code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type +code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact code.superseriousbusiness.org/activity/streams/impl/schema/property_value code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash |
