forked from mirror/pixelfed
Update StatusController, fix reblog_count bug
This commit is contained in:
parent
8763bfc5c4
commit
1dc65e933e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue