Alice automatically accepts followers and Bob follows Alice
given: A new user called "alice"
given: A new user called "bob"
given: "alice" automatically accepts followers
when: "bob" sends "alice" a Follow Activity
outgoing.Follow
{
"actor": "http://banach/actor/DduovzzBe86MOZNClTGpaw",
"data": {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Follow",
"actor": "http://banach/actor/DduovzzBe86MOZNClTGpaw",
"to": [
"http://abel/actor/hnse-h0YaSokGtnvW35UMA"
],
"id": "follow:da1f00a4-4c74-4661-9b35-dd8fd9ddf594",
"published": "2024-11-08T18:34:55Z",
"object": "http://abel/actor/hnse-h0YaSokGtnvW35UMA"
},
"activity_type": "Follow"
}
incoming.Follow
{
"actor": "http://abel/actor/hnse-h0YaSokGtnvW35UMA",
"data": {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Follow",
"actor": "http://banach/actor/DduovzzBe86MOZNClTGpaw",
"to": [
"http://abel/actor/hnse-h0YaSokGtnvW35UMA"
],
"id": "follow:da1f00a4-4c74-4661-9b35-dd8fd9ddf594",
"published": "2024-11-08T18:34:55Z",
"object": "http://abel/actor/hnse-h0YaSokGtnvW35UMA"
},
"activity_type": "Follow"
}
outgoing.Accept
{
"actor": "http://abel/actor/hnse-h0YaSokGtnvW35UMA",
"data": {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Accept",
"actor": "http://abel/actor/hnse-h0YaSokGtnvW35UMA",
"to": [
"http://banach/actor/DduovzzBe86MOZNClTGpaw"
],
"published": "2024-11-08T18:34:55Z",
"object": "follow:da1f00a4-4c74-4661-9b35-dd8fd9ddf594"
},
"activity_type": "Accept"
}
incoming.Accept
{
"actor": "http://banach/actor/DduovzzBe86MOZNClTGpaw",
"data": {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Accept",
"actor": "http://abel/actor/hnse-h0YaSokGtnvW35UMA",
"to": [
"http://banach/actor/DduovzzBe86MOZNClTGpaw"
],
"published": "2024-11-08T18:34:55Z",
"object": "follow:da1f00a4-4c74-4661-9b35-dd8fd9ddf594"
},
"activity_type": "Accept"
}
then: The "followers" collection of "alice" contains "bob"
receive.alice
{
"action": "fetch_result",
"actor": "http://abel/actor/hnse-h0YaSokGtnvW35UMA",
"data": {
"@context": "https://www.w3.org/ns/activitystreams",
"id": "http://abel/followers/aJe_-68AbUvmGRzYjPqxwQ",
"type": "OrderedCollection",
"totalItems": 1,
"orderedItems": [
"http://banach/actor/DduovzzBe86MOZNClTGpaw"
]
}
}
then: The "following" collection of "bob" contains "alice"
receive.bob
{
"action": "fetch_result",
"actor": "http://banach/actor/DduovzzBe86MOZNClTGpaw",
"data": {
"@context": "https://www.w3.org/ns/activitystreams",
"id": "http://banach/following/NusUAbLetjUlAhh5ujuI-A",
"type": "OrderedCollection",
"totalItems": 1,
"orderedItems": [
"http://abel/actor/hnse-h0YaSokGtnvW35UMA"
]
}
}