diff options
Diffstat (limited to 'internal/db/relationship.go')
-rw-r--r-- | internal/db/relationship.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/db/relationship.go b/internal/db/relationship.go index f8866a545..e19aee646 100644 --- a/internal/db/relationship.go +++ b/internal/db/relationship.go @@ -165,4 +165,10 @@ type Relationship interface { // CountAccountFollowerRequests returns number of follow requests originating from the given account. CountAccountFollowRequesting(ctx context.Context, accountID string) (int, error) + + // GetNote gets a private note from a source account on a target account, if it exists. + GetNote(ctx context.Context, sourceAccountID string, targetAccountID string) (*gtsmodel.AccountNote, error) + + // PutNote creates or updates a private note. + PutNote(ctx context.Context, note *gtsmodel.AccountNote) error } |