1
0
Fork 0

Update StatusController

This commit is contained in:
Daniel Supernault 2019-06-24 22:43:42 -06:00
parent 3b1082032f
commit abdac129ae
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ class StatusController extends Controller
->whereNotIn('visibility',['draft','direct'])
->findOrFail($id);
if($status->uri) {
$url = $status->uri;
if($status->uri || $status->url) {
$url = $status->uri ?? $status->url;
if(ends_with($url, '/activity')) {
$url = str_replace('/activity', '', $url);
}