error in attaching video with alt-text

This commit is contained in:
Mike Macgirvin 2024-06-27 07:48:01 +10:00
parent bf5ad1a4a4
commit d9e3e8430c

View file

@ -4669,7 +4669,7 @@ class Activity
if (isset($a['name']) && $a['name']) {
$alt = htmlspecialchars($a['name'], ENT_QUOTES, 'UTF-8', false);
$alt = str_replace(['[', ']'], ['[', ']'], $alt);
$item['body'] .= "\n\n" . '[video title="' . $alt . '"]' . $a['href'] . '[/img]';
$item['body'] .= "\n\n" . '[video title="' . $alt . '"]' . $a['href'] . '[/video]';
} else {
$item['body'] .= "\n\n" . '[video]' . $a['href'] . '[/video]';
}