mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-08 17:53:16 -06:00
add rejectfollowrequest to db
This commit is contained in:
parent
a1175cde3c
commit
6c65349e5a
2 changed files with 30 additions and 0 deletions
|
|
@ -54,6 +54,11 @@ type Relationship interface {
|
|||
// It will return the newly created follow for further processing.
|
||||
AcceptFollowRequest(ctx context.Context, originAccountID string, targetAccountID string) (*gtsmodel.Follow, Error)
|
||||
|
||||
// RejectFollowRequest fetches a follow request from the database, and then deletes it.
|
||||
//
|
||||
// The deleted follow request will be returned so that further processing can be done on it.
|
||||
RejectFollowRequest(ctx context.Context, originAccountID string, targetAccountID string) (*gtsmodel.FollowRequest, Error)
|
||||
|
||||
// GetAccountFollowRequests returns all follow requests targeting the given account.
|
||||
GetAccountFollowRequests(ctx context.Context, accountID string) ([]*gtsmodel.FollowRequest, Error)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue