mirror of
https://github.com/friendica/friendica
synced 2025-04-23 07:50:12 +00:00
New function to convert BBCode for a given ID
This commit is contained in:
parent
f3452d86c4
commit
f29bd23ea8
15 changed files with 145 additions and 38 deletions
|
@ -2640,7 +2640,7 @@ class Item
|
|||
) {
|
||||
self::addRedirToImageTags($item);
|
||||
|
||||
$item['rendered-html'] = BBCode::convert($item['body'], true, BBCode::INTERNAL, false, $item['uri-id']);
|
||||
$item['rendered-html'] = BBCode::convertForItem($item['uri-id'], $item['body']);
|
||||
$item['rendered-hash'] = hash('md5', BBCode::VERSION . '::' . $body);
|
||||
|
||||
$hook_data = ['item' => $item, 'rendered-html' => $item['rendered-html'], 'rendered-hash' => $item['rendered-hash']];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue