Merge pull request #11523 from annando/preview

Fix: Preview failed because of unknown variables
This commit is contained in:
Tobias Diekershoff 2022-05-17 06:09:51 +02:00 committed by GitHub
commit 9f1cc2fb67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -623,7 +623,9 @@ function item_post(App $a) {
$datarray["author-network"] = Protocol::DFRN; $datarray["author-network"] = Protocol::DFRN;
$datarray["author-updated"] = ''; $datarray["author-updated"] = '';
$datarray["author-gsid"] = 0; $datarray["author-gsid"] = 0;
$datarray["author-uri-id"] = ItemURI::getIdByURI($datarray["author-link"]);
$datarray["owner-updated"] = ''; $datarray["owner-updated"] = '';
$datarray["has-media"] = false;
$o = DI::conversation()->create([array_merge($contact_record, $datarray)], 'search', false, true); $o = DI::conversation()->create([array_merge($contact_record, $datarray)], 'search', false, true);