Update status view, fix unlisted/private scope bug

This commit is contained in:
Daniel Supernault 2024-02-15 21:41:18 -07:00
parent df5e61266c
commit 0f3ca19461
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -4,7 +4,7 @@
]) ])
@php @php
$s = \App\Services\StatusService::get($status->id); $s = \App\Services\StatusService::get($status->id, false);
$displayName = $s && $s['account'] ? $s['account']['display_name'] : false; $displayName = $s && $s['account'] ? $s['account']['display_name'] : false;
$captionPreview = false; $captionPreview = false;
$domain = $displayName ? '@' . parse_url($s['account']['url'], PHP_URL_HOST) : ''; $domain = $displayName ? '@' . parse_url($s['account']['url'], PHP_URL_HOST) : '';