Update StatusRemoteUpdatePipeline, fix typo

This commit is contained in:
Daniel Supernault 2023-05-25 03:42:43 -06:00
parent 53e0df4169
commit 109d041908
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -144,7 +144,7 @@ class StatusRemoteUpdatePipeline implements ShouldQueue
protected function createEdit($status, $activity) protected function createEdit($status, $activity)
{ {
$cleaned = isset($activity['content']) ? Purify::clean($activity['content']) : null; $cleaned = isset($activity['content']) ? Purify::clean($activity['content']) : null;
$spoiler_text = isset($activity['summary']) ? Purify::clean($attributes['summary']) : null; $spoiler_text = isset($activity['summary']) ? Purify::clean($activity['summary']) : null;
$sensitive = isset($activity['sensitive']) ? $activity['sensitive'] : null; $sensitive = isset($activity['sensitive']) ? $activity['sensitive'] : null;
$mids = $status->media()->count() ? $status->media()->orderBy('order')->pluck('id')->toArray() : null; $mids = $status->media()->count() ? $status->media()->orderBy('order')->pluck('id')->toArray() : null;
StatusEdit::create([ StatusEdit::create([