diff --git a/src/Lib/Activity.php b/src/Lib/Activity.php index 2a2356f55..23c76a16f 100644 --- a/src/Lib/Activity.php +++ b/src/Lib/Activity.php @@ -4685,14 +4685,12 @@ class Activity $item['body'] .= "\n\n" . '[audio]' . $a['href'] . '[/audio]'; } } - if (array_key_exists('type', $a) && stripos($a['type'], 'link') !== false) { - if (ActivityStreams::is_url($a['href']) && !strpos($item['body'], $a['href'])) { - $li = Url::get(z_root() . '/linkinfo?binurl=' . bin2hex($a['href'])); - if ($li['success'] && $li['body']) { - $item['body'] .= "\n" . $li['body']; - } else { - $item['body'] .= "\n\n" . $a['href']; - } + if (!isset($a['type']) && ActivityStreams::is_url($a['href']) && !strpos($item['body'], $a['href'])) { + $li = Url::get(z_root() . '/linkinfo?binurl=' . bin2hex($a['href'])); + if ($li['success'] && $li['body']) { + $item['body'] .= "\n" . $li['body']; + } else { + $item['body'] .= "\n\n" . $a['href']; } }