mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-26 05:36:38 +00:00
[bugfix] Fix delete follow req instead of follow (#1962)
This commit is contained in:
parent
f40bb02f31
commit
6dbb8ba7aa
|
@ -376,14 +376,14 @@ func (p *Processor) processCreateBlockFromFederator(ctx context.Context, federat
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove any follows that existed between blocker + blockee.
|
// Remove any follows that existed between blocker + blockee.
|
||||||
if err := p.state.DB.DeleteFollowRequest(ctx, block.AccountID, block.TargetAccountID); err != nil {
|
if err := p.state.DB.DeleteFollow(ctx, block.AccountID, block.TargetAccountID); err != nil {
|
||||||
return gtserror.Newf(
|
return gtserror.Newf(
|
||||||
"db error deleting follow from %s targeting %s: %w",
|
"db error deleting follow from %s targeting %s: %w",
|
||||||
block.AccountID, block.TargetAccountID, err,
|
block.AccountID, block.TargetAccountID, err,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := p.state.DB.DeleteFollowRequest(ctx, block.TargetAccountID, block.AccountID); err != nil {
|
if err := p.state.DB.DeleteFollow(ctx, block.TargetAccountID, block.AccountID); err != nil {
|
||||||
return gtserror.Newf(
|
return gtserror.Newf(
|
||||||
"db error deleting follow from %s targeting %s: %w",
|
"db error deleting follow from %s targeting %s: %w",
|
||||||
block.TargetAccountID, block.AccountID, err,
|
block.TargetAccountID, block.AccountID, err,
|
||||||
|
|
Loading…
Reference in a new issue