diff options
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php index d1cd1cc73..c3f7f33ea 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -360,7 +360,16 @@ function notifier_run($argv, $argc){ if(! $contact) continue; - $atom .= atom_entry($item,'text',$contact,$owner,true); + if($normal_mode) { + + // we only need the current item, but include the parent because without it + // older sites without a corresponding dfrn_notify change may do the wrong thing. + + if($item_id == $item['id'] || $item['id'] == $item['parent']) + $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); |