]> git.mxchange.org Git - friendica.git/blobdiff - include/delivery.php
yikes
[friendica.git] / include / delivery.php
index 46112d78eeb919efb3445c53fa0755f8d15fec02..1ba1d9c3a93ffb9da1fc914febda05b46b09aef9 100644 (file)
@@ -123,7 +123,6 @@ function delivery_run($argv, $argc){
                if( ! ($icontacts && count($icontacts)))
                        return;
 
-
                // avoid race condition with deleting entries
 
                if($items[0]['deleted']) {
@@ -269,7 +268,12 @@ function delivery_run($argv, $argc){
                                if(! $item_contact)
                                        continue;
 
-                               $atom .= atom_entry($item,'text',$item_contact,$owner,true);
+                               if($normal_mode) {
+                                       if($item_id == $item['id'] || $item['id'] == $item['parent'])
+                                               $atom .= atom_entry($item,'text',$item_contact,$owner,true);
+                               }
+                               else
+                                       $atom .= atom_entry($item,'text',$item_contact,$owner,true);
 
                        }