This commit is contained in:
Adrian Lang 2009-09-14 22:08:17 +02:00
parent fcff85bb36
commit 5bad7040b1
1 changed files with 3 additions and 8 deletions

View File

@ -80,14 +80,9 @@ function omb_broadcast_notice($notice)
$posted = array();
while ($rp->fetch()) {
if (!array_key_exists($rp->postnoticeurl, $posted)) {
common_log(LOG_DEBUG, 'Posting to ' . $rp->postnoticeurl);
if (omb_post_notice_keys($notice, $rp->postnoticeurl, $rp->token, $rp->secret)) {
common_log(LOG_DEBUG, 'Finished to ' . $rp->postnoticeurl);
$posted[$rp->postnoticeurl] = true;
} else {
common_log(LOG_DEBUG, 'Failed posting to ' . $rp->postnoticeurl);
}
if (isset($posted[$rp->postnoticeurl])) {
/* We already posted to this url. */
continue;
}
common_debug('Posting to ' . $rp->postnoticeurl, __FILE__);