Update StatusController

pull/1418/head
Daniel Supernault 6 years ago
parent 9f928ae570
commit 84e01f1132
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -260,6 +260,11 @@ class StatusController extends Controller
SharePipeline::dispatch($share); SharePipeline::dispatch($share);
} }
if($count >= 0) {
$status->reblogs_count = $count;
$status->save();
}
if ($request->ajax()) { if ($request->ajax()) {
$response = ['code' => 200, 'msg' => 'Share saved', 'count' => $count]; $response = ['code' => 200, 'msg' => 'Share saved', 'count' => $count];
} else { } else {

Loading…
Cancel
Save