mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update DirectMessageController, dispatch local deletes to pipeline
This commit is contained in:
parent
93a6f1e224
commit
9818656425
1 changed files with 3 additions and 3 deletions
|
@ -17,6 +17,7 @@ use App\{
|
|||
use App\Services\MediaPathService;
|
||||
use App\Services\MediaBlocklistService;
|
||||
use App\Jobs\StatusPipeline\NewStatusPipeline;
|
||||
use App\Jobs\StatusPipeline\StatusDelete;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Util\ActivityPub\Helpers;
|
||||
use App\Services\AccountService;
|
||||
|
@ -502,6 +503,8 @@ class DirectMessageController extends Controller
|
|||
if($recipient['local'] == false) {
|
||||
$dmc = $dm;
|
||||
$this->remoteDelete($dmc);
|
||||
} else {
|
||||
StatusDelete::dispatch($status)->onQueue('high');
|
||||
}
|
||||
|
||||
if(Conversation::whereStatusId($sid)->count()) {
|
||||
|
@ -543,9 +546,6 @@ class DirectMessageController extends Controller
|
|||
|
||||
StatusService::del($status->id, true);
|
||||
|
||||
$status->delete();
|
||||
$dm->delete();
|
||||
|
||||
return [200];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue