mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
fix alt-text in embedded photos
This commit is contained in:
parent
69f31cf429
commit
94056da199
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ class Embedphotos extends Controller
|
|||
}
|
||||
$image = $r[1] ?? $r[0];
|
||||
$link = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $attach['hash'] . ']' .
|
||||
'[zmg alt="' . $image['description'] ?: $image['filename'] . '"]' . z_root() . '/photo/' . $attach['hash'] . '-' . $image['imgscale'] . '[/zmg][/zrl]' . "\n\n";
|
||||
'[zmg alt="' . (($image['description']) ?: $image['filename']) . '"]' . z_root() . '/photo/' . $attach['hash'] . '-' . $image['imgscale'] . '[/zmg][/zrl]' . "\n\n";
|
||||
return $link;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue