mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update StatusController
This commit is contained in:
parent
9f928ae570
commit
84e01f1132
1 changed files with 6 additions and 1 deletions
|
@ -259,7 +259,12 @@ class StatusController extends Controller
|
||||||
$count++;
|
$count++;
|
||||||
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…
Reference in a new issue