diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-10 18:40:02 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-10 18:40:02 -0700 |
commit | 69394c1680cc72b5c4b43c8d321a5348ca75be35 (patch) | |
tree | 2af27840af4824d654876c4439899b5fef5dd883 /include/import.php | |
parent | 4203d43c58044582fdab9e46cddef7e7fa7b23fa (diff) | |
download | volse-hubzilla-69394c1680cc72b5c4b43c8d321a5348ca75be35.tar.gz volse-hubzilla-69394c1680cc72b5c4b43c8d321a5348ca75be35.tar.bz2 volse-hubzilla-69394c1680cc72b5c4b43c8d321a5348ca75be35.zip |
re-implement single delivery
Diffstat (limited to 'include/import.php')
-rw-r--r-- | include/import.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/import.php b/include/import.php index 4d38c8061..702fa7e54 100644 --- a/include/import.php +++ b/include/import.php @@ -644,6 +644,12 @@ function import_items($channel, $items, $sync = false, $relocate = null) { fix_attached_file_permissions($channel,$item['author_xchan'],$item['body'],$item['allow_cid'],$item['allow_gid'],$item['deny_cid'],$item['deny_gid']); + if($sync && $item['item_wall']) { + // deliver singletons if we have any + if($item_result && $item_result['success']) { + Zotlabs\Daemon\Master::Summon( [ 'Notifier','single_activity',$item_result['item_id'] ]); + } + } } } } @@ -1017,6 +1023,9 @@ function import_mail($channel, $mails, $sync = false) { $m['aid'] = $channel['channel_account_id']; $m['uid'] = $channel['channel_id']; $mail_id = mail_store($m); + if($sync && $mail_id) { + Zotlabs\Daemon\Master::Summon(array('Notifier','single_mail',$mail_id)); + } } } } |