From e670c32a9147f632d06ee10c170201677ec1e12d Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 24 May 2021 18:49:48 +0200 Subject: Faves (#31) * start on federating faves * outbound federation of likes working --- internal/gtsmodel/statusfave.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'internal/gtsmodel') 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:"-"` } -- cgit v1.2.3