Publish until

This commit is contained in:
2024-07-22 01:44:04 +08:00
parent 045744aa18
commit f5664715f8
4 changed files with 68 additions and 57 deletions

View File

@ -28,8 +28,9 @@ type Post struct {
RepostTo *Post `json:"repost_to" gorm:"foreignKey:RepostID"`
Realm *Realm `json:"realm"`
IsDraft bool `json:"is_draft"`
PublishedAt *time.Time `json:"published_at"`
IsDraft bool `json:"is_draft"`
PublishedAt *time.Time `json:"published_at"`
PublishedUntil *time.Time `json:"published_until"`
AuthorID uint `json:"author_id"`
Author Account `json:"author"`