diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-06 13:14:50 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-06 13:14:50 -0400 |
commit | d2092d1a821d6c4351ce21b9757d8b06d9fa3a82 (patch) | |
tree | fdd075ec1123d1ee64745e9dcfa46c4a6638a8d1 /lib | |
parent | a578bfc03d44f80e99c8fcd8fbbd831a027d7ea9 (diff) |
debugging messages in broadcast remote
darcs-hash:20080606171450-84dde-cd594e2cdb734a76e4dd6436a40ba900d4f64053.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/omb.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/omb.php b/lib/omb.php index 2cbd09ea5..b144b428d 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -114,15 +114,19 @@ function omb_local_id($service) { function omb_broadcast_remote_subscribers($notice) { # First, get remote users subscribed to this profile + common_debug('starting broadcast for notice #'.$notice->id, __FILE__); $sub = new Subscription(); $sub->subscribed = $notice->profile_id; $rp = new Remote_profile(); $sub->addJoin($rp, 'INNER', NULL, 'subscriber'); if ($sub->find()) { + common_debug('Found subscriptions for '.$notice->id, __FILE__); $posted = array(); while ($sub->fetch()) { + common_debug('Subscription by profile '.$sub->subscriber, __FILE__); if (!$posted[$rp->postnoticeurl]) { if (omb_post_notice($notice, $rp, $sub)) { + common_debug('successful update to '.$rp->postnoticeurl, __FILE__); $posted[$rp->postnoticeurl] = TRUE; } } |