diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-24 20:39:24 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-24 20:39:24 -0700 |
commit | b41218ca303b9fd8258fd613915d3c4b9fd411c0 (patch) | |
tree | c1b08bee4f7b3737e3717d4d5eb4be9b781dc044 /include/notifier.php | |
parent | b8b227b32882fb511c8481a41c53637e7ce7707a (diff) | |
download | volse-hubzilla-b41218ca303b9fd8258fd613915d3c4b9fd411c0.tar.gz volse-hubzilla-b41218ca303b9fd8258fd613915d3c4b9fd411c0.tar.bz2 volse-hubzilla-b41218ca303b9fd8258fd613915d3c4b9fd411c0.zip |
workflow for federated/non-dfrn followers
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php index 99b385996..9e4a7102e 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -87,6 +87,9 @@ // If this is a public conversation, notify the feed hub $notify_hub = true; + // fill this in with a salmon slap if applicable + $slap = ''; + if($cmd != 'mail') { require_once('include/group.php'); @@ -197,7 +200,7 @@ $actobj = construct_activity($item); if($item['id'] == $item_id) { - $atom .= replace_macros($cmnt_template, array( + $slap = replace_macros($cmnt_template, array( '$name' => xmlify($owner['name']), '$profile_page' => xmlify($owner['url']), '$thumb' => xmlify($owner['thumb']), @@ -220,6 +223,7 @@ )); } } + $atom .= $slap; } else { foreach($items as $item) { @@ -303,6 +307,8 @@ // delivery loop + + foreach($r as $contact) { if($contact['self']) continue; @@ -314,6 +320,10 @@ $deliver_status = dfrn_deliver($owner,$contact,$atom,$debugging); break; default: + if($followup) { + require_once('include/salmon.php'); + slapper($owner,$contact,$slap); + } break; } |