summaryrefslogtreecommitdiff
path: root/internal/processing/workers/fromfediapi.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-08-11 09:23:36 +0000
committerLibravatar GitHub <noreply@github.com>2024-08-11 11:23:36 +0200
commit865b3aeaac8f165462796a7a5f8cf04ae7724d0f (patch)
treee17d58bf351e99fb512900ed5c3b6a60fe7c6196 /internal/processing/workers/fromfediapi.go
parent[bugfix] ensure testrig package only compiled-in when debug enabled (#3185) (diff)
downloadgotosocial-865b3aeaac8f165462796a7a5f8cf04ae7724d0f.tar.xz
[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
Diffstat (limited to 'internal/processing/workers/fromfediapi.go')
-rw-r--r--internal/processing/workers/fromfediapi.go2
1 files changed, 1 insertions, 1 deletions
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)
}