1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-01-30 10:52:18 +00:00

Update StatusController

This commit is contained in:
Daniel Supernault 2019-06-18 00:47:38 -06:00
parent 9f928ae570
commit 84e01f1132
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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