Implement backfilling statuses thru scheduled_at

This commit is contained in:
Vyr Cossont 2025-01-25 22:13:25 -08:00
commit 46050707d7
6 changed files with 132 additions and 29 deletions

View file

@ -86,7 +86,7 @@ func (s *Status) GetAccountID() string {
return s.AccountID
}
// GetBoostID implements timeline.Timelineable{}.
// GetBoostOfID implements timeline.Timelineable{}.
func (s *Status) GetBoostOfID() string {
return s.BoostOfID
}
@ -171,7 +171,7 @@ func (s *Status) EditsPopulated() bool {
return true
}
// EmojissUpToDate returns whether status emoji attachments of receiving status are up-to-date
// EmojisUpToDate returns whether status emoji attachments of receiving status are up-to-date
// according to emoji attachments of the passed status, by comparing their emoji URIs. We don't
// use IDs as this is used to determine whether there are new emojis to fetch.
func (s *Status) EmojisUpToDate(other *Status) bool {
@ -386,3 +386,8 @@ type Content struct {
Content string
ContentMap map[string]string
}
// BackfillStatus is a wrapper for creating a status without pushing notifications to followers.
type BackfillStatus struct {
*Status
}