aboutsummaryrefslogtreecommitdiffstats
path: root/include/delivery.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-04 18:53:56 -0700
committerFriendika <info@friendika.com>2011-10-04 18:53:56 -0700
commit7b648e6da85ece5b402dfce6d546f5711bc63bea (patch)
tree940f25331bc9e62decc8cf831619e083c3fdf28a /include/delivery.php
parent24595c55d7258660862ef5bc2203b226d6615362 (diff)
downloadvolse-hubzilla-7b648e6da85ece5b402dfce6d546f5711bc63bea.tar.gz
volse-hubzilla-7b648e6da85ece5b402dfce6d546f5711bc63bea.tar.bz2
volse-hubzilla-7b648e6da85ece5b402dfce6d546f5711bc63bea.zip
performance enhancements
Diffstat (limited to 'include/delivery.php')
-rw-r--r--include/delivery.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/delivery.php b/include/delivery.php
index 46112d78e..e06db6d97 100644
--- a/include/delivery.php
+++ b/include/delivery.php
@@ -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'])
+ $atom .= atom_entry($item,'text',$item_contact,$owner,true);
+ }
+ else
+ $atom .= atom_entry($item,'text',$item_contact,$owner,true);
}