1
0
Fork 0
forked from mirror/pixelfed

Update StatusController, fix reblog_count bug

This commit is contained in:
Daniel Supernault 2020-04-27 00:14:50 -06:00
parent 8763bfc5c4
commit 1dc65e933e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -175,7 +175,7 @@ class StatusController extends Controller
->whereIn('scope', ['public', 'unlisted']) ->whereIn('scope', ['public', 'unlisted'])
->findOrFail($request->input('item')); ->findOrFail($request->input('item'));
$count = $status->shares_count; $count = $status->shares()->count();
$exists = Status::whereProfileId(Auth::user()->profile->id) $exists = Status::whereProfileId(Auth::user()->profile->id)
->whereReblogOfId($status->id) ->whereReblogOfId($status->id)