Skip to content

Instantly share code, notes, and snippets.

@simong
Created April 14, 2014 11:17
Show Gist options
  • Select an option

  • Save simong/10638961 to your computer and use it in GitHub Desktop.

Select an option

Save simong/10638961 to your computer and use it in GitHub Desktop.
# Activity Information
## Activity entities
The following lists all the entity types and its assocations that are known to the system.
An entity type will be an `actor`, `object` or `target` property of the activity.
Each entity type has a set of `assocations` that will be used by the activity router to figure
out how it should send an activity to the correct activity stream.
* user
* self : Represents the user
* followers : Represents all those users that follow this users
* group
* self : Represents the group
* members: Represents all the direct and indirect members of the group
* managers: Represents all the direct and indirect managers of the group
* content
* self : Represents the content item
* members: Represents all the direct and indirect members of the content item
* managers: Represents all the direct and indirect managers of the content item
* message-contributors: Represents all the users who have posted a comment on the content item
* content-comment
..
## Activities
The following lists all the activities that are generated by the system and in which activity streams they will end up.
Each activity stream lists the associations the activity router will use to route the activity to the stream.
## content-create
Gets delivered when a user creates a document, link or uploads a file
It will aggregate based on:
* the **actor** router's configuration
| stream | actor | object | target |
| ------------- |-----------------| --------------|----------|
| activity | self, followers | self, members | |
| notification | | members | |
| email | | members | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment