follower.go 787 B

123456789101112131415161718192021
  1. package models
  2. import "github.com/owncast/owncast/utils"
  3. // Follower is our internal representation of a single follower within Owncast.
  4. type Follower struct {
  5. // ActorIRI is the IRI of the remote actor.
  6. ActorIRI string `json:"link"`
  7. // Inbox is the inbox URL of the remote follower
  8. Inbox string `json:"-"`
  9. // Name is the display name of the follower.
  10. Name string `json:"name"`
  11. // Username is the account username of the remote actor.
  12. Username string `json:"username"`
  13. // Image is the avatar image of the follower.
  14. Image string `json:"image"`
  15. // Timestamp is when this follow request was created.
  16. Timestamp utils.NullTime `json:"timestamp,omitempty"`
  17. // DisabledAt is when this follower was rejected or disabled.
  18. DisabledAt utils.NullTime `json:"disabledAt,omitempty"`
  19. }