forked from mirror/pixelfed
Update DirectMessageController, add carousel entity to threads
This commit is contained in:
parent
b24d2554a8
commit
96f24f337e
|
@ -12,6 +12,7 @@ use App\Notification;
|
|||
use App\Profile;
|
||||
use App\Services\AccountService;
|
||||
use App\Services\MediaBlocklistService;
|
||||
use App\Services\MediaService;
|
||||
use App\Services\MediaPathService;
|
||||
use App\Services\StatusService;
|
||||
use App\Services\UserFilterService;
|
||||
|
@ -456,6 +457,7 @@ class DirectMessageController extends Controller
|
|||
'type' => $s->type,
|
||||
'text' => $s->status->caption,
|
||||
'media' => $s->status->firstMedia() ? $s->status->firstMedia()->url() : null,
|
||||
'carousel' => MediaService::get($s->status_id),
|
||||
'created_at' => $s->created_at->format('c'),
|
||||
'timeAgo' => $s->created_at->diffForHumans(null, null, true),
|
||||
'seen' => $s->read_at != null,
|
||||
|
|
Loading…
Reference in New Issue