Fix "Undefined index: reply-to-id"
This commit is contained in:
parent
e0fdde3287
commit
d6c1e1fd1c
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,7 @@ use Friendica\Content\Text\HTML;
|
|||
use Friendica\Content\Text\Markdown;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\APContact;
|
||||
|
@ -191,6 +192,10 @@ class Processor
|
|||
*/
|
||||
public static function createItem($activity)
|
||||
{
|
||||
if (empty($activity['reply-to-id'])) {
|
||||
$activity['reply-to-id'] = $activity['id'];
|
||||
}
|
||||
|
||||
$item = [];
|
||||
$item['verb'] = Activity::POST;
|
||||
$item['thr-parent'] = $activity['reply-to-id'];
|
||||
|
|
Loading…
Reference in a new issue