diff options
| author | 2024-07-11 16:44:29 +0200 | |
|---|---|---|
| committer | 2024-07-11 15:44:29 +0100 | |
| commit | 5bc567196bf2204272950c525e8592e56057c3bd (patch) | |
| tree | 24aec5e75d2a0208505da16ee2c55efd887d3e25 /internal/gtsmodel/status.go | |
| parent | [bugfix] Don't throw error when parent statuses are missing (#2011) (#3088) (diff) | |
| download | gotosocial-5bc567196bf2204272950c525e8592e56057c3bd.tar.xz | |
[chore] Add interaction policy gtsmodels (#3075)
* [chore] introduce interaction policy gts models
* update migration a smidge
* fix copy paste typo
* update migration
* use int for InteractionType
Diffstat (limited to 'internal/gtsmodel/status.go')
| -rw-r--r-- | internal/gtsmodel/status.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index 3bbe82c08..221663ccd 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -66,9 +66,9 @@ type Status struct { ActivityStreamsType string `bun:",nullzero,notnull"` // What is the activitystreams type of this status? See: https://www.w3.org/TR/activitystreams-vocabulary/#object-types. Will probably almost always be Note but who knows!. Text string `bun:""` // Original text of the status without formatting Federated *bool `bun:",notnull"` // This status will be federated beyond the local timeline(s) - Boostable *bool `bun:",notnull"` // This status can be boosted/reblogged - Replyable *bool `bun:",notnull"` // This status can be replied to - Likeable *bool `bun:",notnull"` // This status can be liked/faved + InteractionPolicy *InteractionPolicy `bun:""` // InteractionPolicy for this status. If null then the default InteractionPolicy should be assumed for this status's Visibility. Always null for boost wrappers. + PendingApproval *bool `bun:",nullzero,notnull,default:false"` // If true then status is a reply or boost wrapper that must be Approved by the reply-ee or boost-ee before being fully distributed. + ApprovedByURI string `bun:",nullzero"` // URI of an Accept Activity that approves the Announce or Create Activity that this status was/will be attached to. } // GetID implements timeline.Timelineable{}. |
