From 6dbb8ba7aaa91bd865a408d8a9a87c70ad0bac84 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 8 Jul 2023 23:12:06 +0200 Subject: [PATCH] [bugfix] Fix delete follow req instead of follow (#1962) --- internal/processing/fromfederator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/processing/fromfederator.go b/internal/processing/fromfederator.go index 7152393db..52b12126c 100644 --- a/internal/processing/fromfederator.go +++ b/internal/processing/fromfederator.go @@ -376,14 +376,14 @@ func (p *Processor) processCreateBlockFromFederator(ctx context.Context, federat } // 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( "db error deleting follow from %s targeting %s: %w", 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( "db error deleting follow from %s targeting %s: %w", block.TargetAccountID, block.AccountID, err,