From 865b3aeaac8f165462796a7a5f8cf04ae7724d0f Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Sun, 11 Aug 2024 09:23:36 +0000 Subject: [bugfix] updated pinned counts on status delete (#3188) * include pinned status when incrementing / decrementing status counts * remove the pinned increment on status creation * code comments * microoptimize decr --- internal/processing/workers/fromfediapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/processing/workers/fromfediapi.go') diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go index 63d1f0d16..31df9d284 100644 --- a/internal/processing/workers/fromfediapi.go +++ b/internal/processing/workers/fromfediapi.go @@ -845,7 +845,7 @@ func (p *fediAPI) DeleteStatus(ctx context.Context, fMsg *messages.FromFediAPI) } // Update stats for the remote account. - if err := p.utils.decrementStatusesCount(ctx, fMsg.Requesting); err != nil { + if err := p.utils.decrementStatusesCount(ctx, fMsg.Requesting, status); err != nil { log.Errorf(ctx, "error updating account stats: %v", err) } -- cgit v1.2.3