.activity_pub.models
cattle_grid.activity_pub.models
Data model used to describe ActivityPub related objects
Actor
Bases: Model
Actors administrated by cattle_grid
Source code in cattle_grid/activity_pub/models.py
actor_id
class-attribute
instance-attribute
The id of the actor
automatically_accept_followers
class-attribute
instance-attribute
Set to true to indicate cattle_grid should automatically accept follow requests
followers_uri
class-attribute
instance-attribute
The uri of the followers collection
following_uri
class-attribute
instance-attribute
The uri of the following collection
inbox_uri
class-attribute
instance-attribute
The uri of the inbox
outbox_uri
class-attribute
instance-attribute
The uri of the outbox
preferred_username
class-attribute
instance-attribute
The preferred username, used as the username part of the
acct-uri of the actor, i.e. acct:${preferred_username}@domain
.
See RFC 7565 The ‘acct’ URI Scheme.
profile
class-attribute
instance-attribute
Additional profile values
public_key_name
class-attribute
instance-attribute
The name given to the public key, i.e. the id will be `${actor_id}#${public_key_name}.
status
class-attribute
instance-attribute
status = CharEnumField(ActorStatus, default=active)
Represents the status of the actor
ActorStatus
Blocking
Bases: Model
The people the actor is blocking
Source code in cattle_grid/activity_pub/models.py
Credential
Follower
Bases: Model
The people that follow the actor
Source code in cattle_grid/activity_pub/models.py
Following
Bases: Model
The people the actor is following
Source code in cattle_grid/activity_pub/models.py
InboxLocation
Bases: Model
Describes the location of an inbox. Used to send ActivityPub Activities addressed to the actor to the corresponding inbox.
This information is also collected for remote actors.
Source code in cattle_grid/activity_pub/models.py
PublicIdentifier
Bases: Model
Public identifiers
Source code in cattle_grid/activity_pub/models.py
actor
class-attribute
instance-attribute
actor: ForeignKeyRelation[Actor] = ForeignKeyField(
"ap_models.Actor", related_name="identifiers"
)
The actor the public key belongs to
identifier
class-attribute
instance-attribute
The public identifier, e.g. an acct-uri
preference
class-attribute
instance-attribute
Determines the order of identifiers in the identifiers
field of the actor profile
status
class-attribute
instance-attribute
status = CharEnumField(
PublicIdentifierStatus, default=verified
)
Represents the status of the public identifier
PublicIdentifierStatus
Bases: StrEnum
Represents the status of the public identifier
Source code in cattle_grid/activity_pub/models.py
StoredActivity
Bases: Model
cattle_grid generates activities under some circumstances (see FIXME). These will be stored in this table
Source code in cattle_grid/activity_pub/models.py
actor
class-attribute
instance-attribute
actor: ForeignKeyRelation[Actor] = ForeignKeyField(
"ap_models.Actor"
)
The actor this activity orginates from