Files
owncast/models/follower.go
T
Gabe KangasandGitHub 5a4af3a294 ActivityPub background actor validation, update and cleanup process (#4765)
* feat(ap): add validation+update+cleanup AP actor job

* fix(test): use time.Time instead of sql.NullTime

* feat(test): add integration test for AP follower cleanup/validation job
2026-02-02 17:34:25 -08:00

26 lines
1.0 KiB
Go

package models
import "github.com/owncast/owncast/utils"
// Follower is our internal representation of a single follower within Owncast.
type Follower struct {
// ActorIRI is the IRI of the remote actor.
ActorIRI string `json:"link"`
// Inbox is the inbox URL of the remote follower
Inbox string `json:"-"`
// SharedInbox is the shared inbox URL of the remote follower's server (optional)
SharedInbox string `json:"-"`
// Name is the display name of the follower.
Name string `json:"name"`
// Username is the account username of the remote actor.
Username string `json:"username"`
// Image is the avatar image of the follower.
Image string `json:"image"`
// Timestamp is when this follow request was created.
Timestamp utils.NullTime `json:"timestamp,omitempty"`
// DisabledAt is when this follower was rejected or disabled.
DisabledAt utils.NullTime `json:"disabledAt,omitempty"`
// FirstValidationFailureAt is when consecutive validation failures started.
FirstValidationFailureAt utils.NullTime `json:"-"`
}