performance enhancements

This commit is contained in:
Friendika 2011-10-04 18:53:56 -07:00
parent 24595c55d7
commit 7b648e6da8
5 changed files with 22 additions and 8 deletions

View file

@ -360,7 +360,12 @@ function notifier_run($argv, $argc){
if(! $contact)
continue;
$atom .= atom_entry($item,'text',$contact,$owner,true);
if($normal_mode) {
if($item_id == $item['id'])
$atom .= atom_entry($item,'text',$contact,$owner,true);
}
else
$atom .= atom_entry($item,'text',$contact,$owner,true);
if(($top_level) && ($public_message) && ($item['author-link'] === $item['owner-link']) && (! $expire))
$slaps[] = atom_entry($item,'html',$contact,$owner,true);