tidying up some stuff

This commit is contained in:
tsmethurst
2021-04-05 14:21:38 +02:00
parent d1ca4a1219
commit ca69a4102b
4 changed files with 192 additions and 116 deletions

View File

@ -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.