about summary refs log tree commit diff
path: root/app/controllers/api/v1
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-07-23 16:25:58 -0500
committerStarfall <us@starfall.systems>2020-07-23 16:25:58 -0500
commit2b41ed0fd69a7f7a0e17d6f0c6a421805c5e3127 (patch)
treea3ab43415b061112bc614205a3bb96bb9718bbd0 /app/controllers/api/v1
parente3d96a9bc62f57d60dc21906b4b803e346b0a738 (diff)
parent16416e940fd803af92377eee9a1756ef27eed199 (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r--app/controllers/api/v1/statuses_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb
index b3edce676..c8529318f 100644
--- a/app/controllers/api/v1/statuses_controller.rb
+++ b/app/controllers/api/v1/statuses_controller.rb
@@ -58,6 +58,7 @@ class Api::V1::StatusesController < Api::BaseController
 
     @status.discard
     RemovalWorker.perform_async(@status.id, redraft: true)
+    @status.account.statuses_count = @status.account.statuses_count - 1
 
     render json: @status, serializer: REST::StatusSerializer, source_requested: true
   end