* 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
26 lines
1.0 KiB
Go
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:"-"`
|
|
}
|