Fix reply via API / fix missing variable
This commit is contained in:
parent
c27fdc7167
commit
b46f18bdf9
|
@ -958,10 +958,11 @@ class Item
|
|||
$post['wall'] = $post['wall'] ?? true;
|
||||
$post['guid'] = $post['guid'] ?? System::createUUID();
|
||||
$post['verb'] = $post['verb'] ?? Activity::POST;
|
||||
$post['uri'] = $post['uri'] ?? ItemModel::newURI($post['guid']);
|
||||
$post['thr-parent'] = $post['thr-parent'] ?? $post['uri'];
|
||||
|
||||
if (empty($post['uri'])) {
|
||||
$post['thr-parent'] = $post['uri'] = ItemModel::newURI($post['guid']);
|
||||
$post['gravity'] = ItemModel::GRAVITY_PARENT;
|
||||
if (empty($post['gravity'])) {
|
||||
$post['gravity'] = ($post['uri'] == $post['thr-parent']) ? ItemModel::GRAVITY_PARENT : ItemModel::GRAVITY_COMMENT;
|
||||
}
|
||||
|
||||
$owner = User::getOwnerDataById($post['uid']);
|
||||
|
|
|
@ -210,6 +210,8 @@ class Status extends BaseFactory
|
|||
// We can always safely add attached activities. Real quotes are added to the body via "addSharedPost".
|
||||
if (empty($item['quote-uri-id'])) {
|
||||
$quote = self::createQuote($item, $uid);
|
||||
} else {
|
||||
$quote = [];
|
||||
}
|
||||
|
||||
$shared = $this->contentItem->getSharedPost($item, ['uri-id']);
|
||||
|
|
Loading…
Reference in New Issue
Block a user