Function calls

update function calls to new class
This commit is contained in:
Adam Magness 2018-11-06 21:16:27 -05:00
parent d50a1edef4
commit e537f7d017
6 changed files with 10 additions and 10 deletions

View file

@ -697,11 +697,10 @@ function item_post(App $a) {
killme();
}
if ($orig_post) {
if ($orig_post) {
// Fill the cache field
// This could be done in Item::update as well - but we have to check for the existance of some fields.
put_item_in_cache($datarray);
Item::putInCache($datarray);
$fields = [
'title' => $datarray['title'],
@ -817,7 +816,7 @@ function item_post(App $a) {
$subject = Email::encodeHeader('[Friendica]' . ' ' . L10n::t('%s posted an update.', $a->user['username']), 'UTF-8');
}
$link = '<a href="' . System::baseUrl() . '/profile/' . $a->user['nickname'] . '"><img src="' . $author['thumb'] . '" alt="' . $a->user['username'] . '" /></a><br /><br />';
$html = prepare_body($datarray);
$html = Item::prepareBody($datarray);
$message = '<html><body>' . $link . $html . $disclaimer . '</body></html>';
$params = [
'fromName' => $a->user['username'],