glossary.md (3276B)
1 # Glossary 2 3 This document describes some commonly-used terms in discussions of federation. 4 5 ## `ActivityPub` 6 7 A decentralized social networking protocol based on the ActivityStreams data format. See [here](https://www.w3.org/TR/activitypub/). 8 9 GoToSocial uses the ActivityPub protocol to communicate between GtS servers, and with other federated servers like Mastodon, Pixelfed, etc. 10 11 ## `ActivityStreams` 12 13 A model/data format for representing potential and completed activities using JSON. See [here](https://www.w3.org/TR/activitystreams-core/). 14 15 GoToSocial uses the ActivityStreams data model to 'speak' ActivityPub with other servers. 16 17 ## `Actor` 18 19 An actor is an ActivityStreams object that is capable of performing some Activity like following, liking, creating a post, reblogging, etc. See [here](https://www.w3.org/TR/activitypub/#actors). 20 21 In GoToSocial, each account/user is an actor. 22 23 ## `Dereference` 24 25 To 'dereference' a post or a profile means to make an HTTP call to the server that hosts that post or profile, in order to obtain its ActivityStreams representation. 26 27 GoToSocial 'dereferences' posts and profiles on remote servers, in order to convert them to models that GoToSocial can understand and work with. 28 29 Here's a more detailed explanation with some examples: 30 31 Let's say that someone on an ActivityPub server searches for the username `@tobi@goblin.technology`. 32 33 Their server would then do a webfinger lookup at `goblin.technology` for the username `tobi`, at the following URL: 34 35 ```text 36 https://goblin.technology/.well-known/webfinger?resource=acct:tobi@goblin.technology 37 ``` 38 39 The `goblin.technology` server would give back some JSON in response; something like this: 40 41 ```json 42 { 43 "subject": "acct:tobi@goblin.technology", 44 "aliases": [ 45 "https://goblin.technology/users/tobi", 46 "https://goblin.technology/@tobi" 47 ], 48 "links": [ 49 { 50 "rel": "http://webfinger.net/rel/profile-page", 51 "type": "text/html", 52 "href": "https://goblin.technology/@tobi" 53 }, 54 { 55 "rel": "self", 56 "type": "application/activity+json", 57 "href": "https://goblin.technology/users/tobi" 58 } 59 ] 60 } 61 ``` 62 63 Under the links section the requesting server would look for a link of type `application/activity+json`, which denotes the ActivityStreams representation of the user. In this case, the URL is: 64 65 ```text 66 https://goblin.technology/users/tobi 67 ``` 68 69 The above URL is a *reference* to the activitypub representation of the user/Actor `tobi` on the `goblin.technology` instance. It's called a reference because it doesn't contain all of the information about that user, it's only a reference point for where that information can be found. 70 71 Now, the requesting server will make a request to that URL in order to obtain a fuller representation of `@tobi@goblin.technology`, which complies to the ActivityPub spec. In other words, the server now follows a *reference* to get to the thing it references. This makes it *not a reference anymore*, hence the term *dereferencing*. 72 73 For an analogy, consider what happens when you look something up in the index of a book: first you get the page number that the material you're interested in is on, which is a reference. Then you turn to the referenced page to see the content, which is dereferencing.