mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Clarify what “partial” means for follower synchronization (#1623)
This commit is contained in:
parent
da1e434ee7
commit
ee373546c5
@ -861,12 +861,12 @@ Secure mode is the foundation upon which "limited federation mode" is built. A M
|
||||
|
||||
### Follower synchronization mechanism
|
||||
|
||||
Mastodon has a concept of "followers-only" posts, but expanding the followers collection is currently handled at the destination rather than at the origin (i.e., not with explicit addressing). Therefore, a mechanism to detect synchronization issues and correct them is needed. This mechanism must work on partial followers collections, rather than the full collection (which may not be public information).
|
||||
Mastodon has a concept of "followers-only" posts, but expanding the followers collection is currently handled at the destination rather than at the origin (i.e., not with explicit addressing). Therefore, a mechanism to detect synchronization issues and correct them is needed. This mechanism must work on partial followers collections, rather than the full collection (which may not be public information). This collection is partial in the sense that it only contains the followers from a specific instance, but it MUST contain all of those followers. A follower being omitted from the collection would lead to that follow relationship getting severed.
|
||||
|
||||
When delivering a message to a remote user, an optional `Collection-Synchronization` HTTP header is attached, following the same syntax as the `Signature` header, with the following attributes:
|
||||
|
||||
- `collectionId` = MUST be the sender's `followers` collection
|
||||
- `url` = a URL to a partial collection containing the identifiers of the sender's followers residing on the receiver's instance. MUST reside on the same domain as the actor itself, and SHOULD be only accessible with a signed query from the receiver's instance
|
||||
- `url` = a URL to a partial collection containing the identifier of every one of the sender's followers residing on the receiver's instance. MUST reside on the same domain as the actor itself, and SHOULD be only accessible with a signed query from the receiver's instance
|
||||
- `digest` = hexadecimal representation of the XORed SHA256 digests of each of the identifiers in the partial collection
|
||||
|
||||
Example:
|
||||
|
Loading…
x
Reference in New Issue
Block a user