More functions moved to content class
This commit is contained in:
parent
c65fff6f93
commit
deccea0228
10 changed files with 113 additions and 59 deletions
|
@ -611,7 +611,7 @@ function item_post(App $a) {
|
|||
$datarray['author-uri-id'] = ItemURI::getIdByURI($datarray['author-link']);
|
||||
$datarray['owner-updated'] = '';
|
||||
$datarray['has-media'] = false;
|
||||
$datarray['body'] = Item::improveSharedDataInBody($datarray);
|
||||
$datarray['body'] = DI::contentItem()->improveSharedDataInBody($datarray);
|
||||
|
||||
$o = DI::conversation()->create([array_merge($contact_record, $datarray)], 'search', false, true);
|
||||
|
||||
|
@ -652,7 +652,7 @@ function item_post(App $a) {
|
|||
}
|
||||
|
||||
$datarray['uri-id'] = ItemURI::getIdByURI($datarray['uri']);
|
||||
$datarray['body'] = Item::improveSharedDataInBody($datarray);
|
||||
$datarray['body'] = DI::contentItem()->improveSharedDataInBody($datarray);
|
||||
|
||||
if ($orig_post) {
|
||||
$fields = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue