fix php error

(cherry picked from commit eeef6cfd00)

Co-authored-by: Mario <mario@mariovavti.com>
This commit is contained in:
Mario
2025-08-07 14:57:11 +00:00
parent 91f1f8ed7c
commit 962b4e5b4c

View File

@@ -2578,7 +2578,7 @@ class Activity {
$ptr = [$act->obj['url']];
}
foreach ($ptr as $vurl) {
if (array_key_exists('mediaType', $vurl) && $vurl['mediaType'] === 'text/html') {
if (isset($vurl['mediaType']) && $vurl['mediaType'] === 'text/html') {
$s['plink'] = $vurl['href'];
break;
}
@@ -2590,7 +2590,7 @@ class Activity {
}
}
if (!(isset($s['plink']) && $s['plink'])) {
if (empty($s['plink'])) {
$s['plink'] = $s['mid'];
}