aboutsummaryrefslogtreecommitdiffstats
path: root/mod/import.php
diff options
context:
space:
mode:
authorhabeascodice <habeascodice@federated.social>2014-10-09 01:09:41 -0700
committerhabeascodice <habeascodice@federated.social>2014-10-09 01:09:41 -0700
commit1b0b847fc80827022c513a74a7fa817c7d640da0 (patch)
tree09a09da19a7eee4c5dc1100b89757e85d2bc8ab8 /mod/import.php
parentddf4ef752077e66d34edb458cfe104ee23ef3834 (diff)
parentfc0576acf810019a0c168bfa4dc4a2175ae0b505 (diff)
downloadvolse-hubzilla-1b0b847fc80827022c513a74a7fa817c7d640da0.tar.gz
volse-hubzilla-1b0b847fc80827022c513a74a7fa817c7d640da0.tar.bz2
volse-hubzilla-1b0b847fc80827022c513a74a7fa817c7d640da0.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/import.php')
-rw-r--r--mod/import.php5
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",