mirror of
https://github.com/friendica/friendica
synced 2025-05-16 23:44:10 +02:00
Normalize item body template variable name
This commit is contained in:
parent
9ff228812f
commit
2bfd53bf09
14 changed files with 19 additions and 20 deletions
|
@ -576,7 +576,7 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
|
|||
unset($likebuttons['dislike']);
|
||||
}
|
||||
|
||||
$body = Item::prepareBody($item, true, $preview);
|
||||
$body_html = Item::prepareBody($item, true, $preview);
|
||||
|
||||
list($categories, $folders) = DI::contentItem()->determineCategoriesTerms($item);
|
||||
|
||||
|
@ -601,7 +601,7 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
|
|||
'lock' => $lock,
|
||||
'thumb' => DI::baseUrl()->remove($item['author-avatar']),
|
||||
'title' => $title,
|
||||
'body' => $body,
|
||||
'body_html' => $body_html,
|
||||
'tags' => $tags['tags'],
|
||||
'hashtags' => $tags['hashtags'],
|
||||
'mentions' => $tags['mentions'],
|
||||
|
@ -612,7 +612,7 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
|
|||
'has_folders' => ((count($folders)) ? 'true' : ''),
|
||||
'categories' => $categories,
|
||||
'folders' => $folders,
|
||||
'text' => strip_tags($body),
|
||||
'text' => strip_tags($body_html),
|
||||
'localtime' => DateTimeFormat::local($item['created'], 'r'),
|
||||
'ago' => (($item['app']) ? DI::l10n()->t('%s from %s', Temporal::getRelativeDate($item['created']),$item['app']) : Temporal::getRelativeDate($item['created'])),
|
||||
'location_html' => $location_html,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue