mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update StatusController
This commit is contained in:
parent
63d7e4ecaa
commit
7d9c7bf59e
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
||||||
use App\Jobs\ImageOptimizePipeline\ImageOptimize;
|
use App\Jobs\ImageOptimizePipeline\ImageOptimize;
|
||||||
use App\Jobs\StatusPipeline\NewStatusPipeline;
|
use App\Jobs\StatusPipeline\NewStatusPipeline;
|
||||||
use App\Jobs\StatusPipeline\StatusDelete;
|
use App\Jobs\StatusPipeline\StatusDelete;
|
||||||
|
use App\Jobs\SharePipeline\SharePipeline;
|
||||||
use App\Media;
|
use App\Media;
|
||||||
use App\Profile;
|
use App\Profile;
|
||||||
use App\Status;
|
use App\Status;
|
||||||
|
@ -234,8 +235,10 @@ class StatusController extends Controller
|
||||||
$share = new Status();
|
$share = new Status();
|
||||||
$share->profile_id = $profile->id;
|
$share->profile_id = $profile->id;
|
||||||
$share->reblog_of_id = $status->id;
|
$share->reblog_of_id = $status->id;
|
||||||
|
$share->in_reply_to_profile_id = $status->profile_id;
|
||||||
$share->save();
|
$share->save();
|
||||||
$count++;
|
$count++;
|
||||||
|
SharePipeline::dispatch($share);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->ajax()) {
|
if ($request->ajax()) {
|
||||||
|
|
Loading…
Reference in a new issue