mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
include/items.php pass 'parent' to notification
This commit is contained in:
parent
2d5f8b4b48
commit
bcfac6c72f
1 changed files with 7 additions and 3 deletions
|
@ -2223,7 +2223,8 @@ function local_delivery($importer,$data) {
|
|||
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
|
||||
? $importer['thumb'] : $datarray['author-avatar']),
|
||||
'verb' => ACTIVITY_POST,
|
||||
'otype' => 'item'
|
||||
'otype' => 'item',
|
||||
'parent' => $parent,
|
||||
|
||||
));
|
||||
|
||||
|
@ -2317,7 +2318,7 @@ function local_delivery($importer,$data) {
|
|||
|
||||
if($datarray['type'] != 'activity') {
|
||||
|
||||
$myconv = q("SELECT `author-link`, `author-avatar` FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d AND `parent` != 0 ",
|
||||
$myconv = q("SELECT `author-link`, `author-avatar`, `parent` FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d AND `parent` != 0 ",
|
||||
dbesc($parent_uri),
|
||||
intval($importer['importer_uid'])
|
||||
);
|
||||
|
@ -2331,6 +2332,8 @@ function local_delivery($importer,$data) {
|
|||
|
||||
require_once('include/enotify.php');
|
||||
|
||||
$conv_parent = $conv['parent'];
|
||||
|
||||
notification(array(
|
||||
'type' => NOTIFY_COMMENT,
|
||||
'notify_flags' => $importer['notify-flags'],
|
||||
|
@ -2345,7 +2348,8 @@ function local_delivery($importer,$data) {
|
|||
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
|
||||
? $importer['thumb'] : $datarray['author-avatar']),
|
||||
'verb' => ACTIVITY_POST,
|
||||
'otype' => 'item'
|
||||
'otype' => 'item',
|
||||
'parent' => $conv_parent,
|
||||
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue