mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-22 12:07:31 -06:00
fixed a few things
This commit is contained in:
parent
884d0ecc8f
commit
3ba528120c
6 changed files with 92 additions and 106 deletions
|
|
@ -41,11 +41,11 @@ type Mention struct {
|
|||
// NameString is for putting in the namestring of the mentioned user
|
||||
// before the mention is dereferenced. Should be in a form along the lines of:
|
||||
// @whatever_username@example.org
|
||||
//
|
||||
// This will not be put in the database, it's just for convenience.
|
||||
NameString string `pg:"-"`
|
||||
// Href is the web URL (not AP uri!) of the user mentioned.
|
||||
//
|
||||
// This will not be put in the database, it's just for convenience.
|
||||
Href string `pg:"-"`
|
||||
NameString string `pg:"-"`
|
||||
// MentionedAccountURI is the AP ID (uri) of the user mentioned.
|
||||
//
|
||||
// This will not be put in the database, it's just for convenience.
|
||||
MentionedAccountURI string `pg:"-"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,12 +71,14 @@ type Status struct {
|
|||
Text string
|
||||
|
||||
/*
|
||||
NON-DATABASE FIELDS
|
||||
INTERNAL MODEL NON-DATABASE FIELDS
|
||||
|
||||
These are for convenience while passing the status around internally,
|
||||
but these fields should *never* be put in the db.
|
||||
*/
|
||||
|
||||
// Account that created this status
|
||||
GTSAccount *Account `pg:"-"`
|
||||
// Mentions created in this status
|
||||
GTSMentions []*Mention `pg:"-"`
|
||||
// Hashtags used in this status
|
||||
|
|
@ -93,6 +95,20 @@ type Status struct {
|
|||
GTSBoostedStatus *Status `pg:"-"`
|
||||
// Account of the boosted status
|
||||
GTSBoostedAccount *Account `pg:"-"`
|
||||
|
||||
/*
|
||||
AP NON-DATABASE FIELDS
|
||||
|
||||
These are for convenience while passing the status around internally,
|
||||
but these fields should *never* be put in the db.
|
||||
*/
|
||||
|
||||
// AP URI of the status being replied to.
|
||||
// Useful when that status doesn't exist in the database yet and we still need to dereference it.
|
||||
APReplyToStatusURI string `pg:"-"`
|
||||
// The AP URI of the owner/creator of the status.
|
||||
// Useful when that account doesn't exist in the database yet and we still need to dereference it.
|
||||
APStatusOwnerURI string `pg:"-"`
|
||||
}
|
||||
|
||||
// Visibility represents the visibility granularity of a status.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue