From 1dc65e933e34d6eefae153d7d071975d8fb59494 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 27 Apr 2020 00:14:50 -0600 Subject: [PATCH] Update StatusController, fix reblog_count bug --- app/Http/Controllers/StatusController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index ef1d5939..cf209bf1 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -175,7 +175,7 @@ class StatusController extends Controller ->whereIn('scope', ['public', 'unlisted']) ->findOrFail($request->input('item')); - $count = $status->shares_count; + $count = $status->shares()->count(); $exists = Status::whereProfileId(Auth::user()->profile->id) ->whereReblogOfId($status->id)