diff options
author | 2021-05-24 18:49:48 +0200 | |
---|---|---|
committer | 2021-05-24 18:49:48 +0200 | |
commit | e670c32a9147f632d06ee10c170201677ec1e12d (patch) | |
tree | 08a49c9942529d3e7457a54b72d334ad36060976 /internal/gtsmodel/statusfave.go | |
parent | first draft of Dockerfile (diff) | |
download | gotosocial-e670c32a9147f632d06ee10c170201677ec1e12d.tar.xz |
Faves (#31)
* start on federating faves
* outbound federation of likes working
Diffstat (limited to 'internal/gtsmodel/statusfave.go')
-rw-r--r-- | internal/gtsmodel/statusfave.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/gtsmodel/statusfave.go b/internal/gtsmodel/statusfave.go index 9fb92b931..efbc37e17 100644 --- a/internal/gtsmodel/statusfave.go +++ b/internal/gtsmodel/statusfave.go @@ -32,7 +32,13 @@ type StatusFave struct { TargetAccountID string `pg:",notnull"` // database id of the status that has been 'faved' StatusID string `pg:",notnull"` + // ActivityPub URI of this fave + URI string `pg:",notnull"` - // FavedStatus is the status being interacted with. It won't be put or retrieved from the db, it's just for conveniently passing a pointer around. - FavedStatus *Status `pg:"-"` + // GTSStatus is the status being interacted with. It won't be put or retrieved from the db, it's just for conveniently passing a pointer around. + GTSStatus *Status `pg:"-"` + // GTSTargetAccount is the account being interacted with. It won't be put or retrieved from the db, it's just for conveniently passing a pointer around. + GTSTargetAccount *Account `pg:"-"` + // GTSFavingAccount is the account doing the faving. It won't be put or retrieved from the db, it's just for conveniently passing a pointer around. + GTSFavingAccount *Account `pg:"-"` } |