mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 13:52:25 -05:00
[bugfix] Delete mutual follow (requests) when receiving block from remote (#1960)
* [bugfix] Delete mutual follow (requests) on block * fix test
This commit is contained in:
parent
747ea584bd
commit
f40bb02f31
5 changed files with 112 additions and 24 deletions
|
|
@ -97,12 +97,18 @@ type Relationship interface {
|
|||
// UpdateFollowRequest updates one follow request by ID.
|
||||
UpdateFollowRequest(ctx context.Context, followRequest *gtsmodel.FollowRequest, columns ...string) error
|
||||
|
||||
// DeleteFollow deletes a follow if it exists between source and target accounts.
|
||||
DeleteFollow(ctx context.Context, sourceAccountID string, targetAccountID string) error
|
||||
|
||||
// DeleteFollowByID deletes a follow from the database with the given ID.
|
||||
DeleteFollowByID(ctx context.Context, id string) error
|
||||
|
||||
// DeleteFollowByURI deletes a follow from the database with the given URI.
|
||||
DeleteFollowByURI(ctx context.Context, uri string) error
|
||||
|
||||
// DeleteFollowRequest deletes a follow request if it exists between source and target accounts.
|
||||
DeleteFollowRequest(ctx context.Context, sourceAccountID string, targetAccountID string) error
|
||||
|
||||
// DeleteFollowRequestByID deletes a follow request from the database with the given ID.
|
||||
DeleteFollowRequestByID(ctx context.Context, id string) error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue