mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
error in attaching video with alt-text
This commit is contained in:
parent
bf5ad1a4a4
commit
d9e3e8430c
1 changed files with 1 additions and 1 deletions
|
@ -4669,7 +4669,7 @@ class Activity
|
||||||
if (isset($a['name']) && $a['name']) {
|
if (isset($a['name']) && $a['name']) {
|
||||||
$alt = htmlspecialchars($a['name'], ENT_QUOTES, 'UTF-8', false);
|
$alt = htmlspecialchars($a['name'], ENT_QUOTES, 'UTF-8', false);
|
||||||
$alt = str_replace(['[', ']'], ['[', ']'], $alt);
|
$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 {
|
} else {
|
||||||
$item['body'] .= "\n\n" . '[video]' . $a['href'] . '[/video]';
|
$item['body'] .= "\n\n" . '[video]' . $a['href'] . '[/video]';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue