diff options
author | Paolo T <tuscanhobbit@users.noreply.github.com> | 2014-10-12 09:15:39 +0200 |
---|---|---|
committer | Paolo T <tuscanhobbit@users.noreply.github.com> | 2014-10-12 09:15:39 +0200 |
commit | 56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41 (patch) | |
tree | c1376be525c85ab799f213ed79648d8c478da3d0 /mod/import.php | |
parent | 9edaa2843b9982f52fb1ed93b1c6e3d9e53921d7 (diff) | |
parent | 44c4c9c5c271a5ad163a089b1dc271d108a59700 (diff) | |
download | volse-hubzilla-56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41.tar.gz volse-hubzilla-56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41.tar.bz2 volse-hubzilla-56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41.zip |
Merge pull request #6 from tuscanhobbit/master
Fast forward local hub
Diffstat (limited to 'mod/import.php')
-rw-r--r-- | mod/import.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/import.php b/mod/import.php index e5a22a26e..3cf114d66 100644 --- a/mod/import.php +++ b/mod/import.php @@ -378,7 +378,10 @@ function import_post(&$a) { } } + $saved_notification_flags = notifications_off($channel['channel_id']); + if($import_posts && array_key_exists('item',$data) && $data['item']) { + foreach($data['item'] as $i) { $item = get_item_elements($i); @@ -404,6 +407,8 @@ function import_post(&$a) { } + notifications_on($channel['channel_id'],$saved_notification_flags); + if(array_key_exists('item_id',$data) && $data['item_id']) { foreach($data['item_id'] as $i) { $r = q("select id from item where mid = '%s' and uid = %d limit 1", |