mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-16 23:27:33 -06:00
tidying up some stuff
This commit is contained in:
parent
d1ca4a1219
commit
ca69a4102b
4 changed files with 192 additions and 116 deletions
|
|
@ -47,16 +47,30 @@ type Status struct {
|
|||
// visibility entry for this status
|
||||
Visibility Visibility
|
||||
// advanced visibility for this status
|
||||
VisibilityAdvanced VisibilityAdvanced
|
||||
VisibilityAdvanced *VisibilityAdvanced
|
||||
// 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!.
|
||||
ActivityStreamsType ActivityStreamsObject
|
||||
// Mentions created in this status -- will not be put in the database along with the status
|
||||
Mentions []*Mention `pg:"-"`
|
||||
// Hashtags used in this status -- will not be put in the database along with the status
|
||||
|
||||
/*
|
||||
NON-DATABASE FIELDS
|
||||
|
||||
These are for convenience while passing the status around internally,
|
||||
but these fields should never be put in the db.
|
||||
*/
|
||||
|
||||
// Mentions created in this status
|
||||
Mentions []*Mention `pg:"-"`
|
||||
// Hashtags used in this status
|
||||
Tags []*Tag `pg:"-"`
|
||||
// Emojis used in this status -- will not be put in the database along with the status
|
||||
// Emojis used in this status
|
||||
Emojis []*Emoji `pg:"-"`
|
||||
// Attachments used in this status
|
||||
Attachments []*MediaAttachment `pg:"-"`
|
||||
// Status being replied to
|
||||
ReplyToStatus *Status `pg:"-"`
|
||||
// Account being replied to
|
||||
ReplyToAccount *Account `pg:"-"`
|
||||
}
|
||||
|
||||
// Visibility represents the visibility granularity of a status.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue