forked from mirror/pixelfed
Update StatusController
This commit is contained in:
parent
3b1082032f
commit
abdac129ae
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue