summaryrefslogtreecommitdiff
path: root/lib/omb.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-09-09 22:52:38 -0400
committerCraig Andrews <candrews@integralblue.com>2009-09-09 22:52:38 -0400
commitd7ae0ed4fd755ebad0788a17d0f2fb6a6ca9d63b (patch)
treedf58e167fe84f49af11edce4d0a7ebc34e480510 /lib/omb.php
parentbeae3db41375879e725af053edf8041bbd76ac8c (diff)
parentaecdba1ded89b45f32d0b7615ce6b103478403dd (diff)
Merge remote branch 'laconica/0.8.x' into 0.9.x
Conflicts: lib/omb.php
Diffstat (limited to 'lib/omb.php')
-rw-r--r--lib/omb.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 0566701ff..9133af7a0 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -80,9 +80,14 @@ function omb_broadcast_notice($notice)
$posted = array();
while ($rp->fetch()) {
- if (isset($posted[$rp->postnoticeurl])) {
- /* We already posted to this url. */
- continue;
+ 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);
+ }
}
common_debug('Posting to ' . $rp->postnoticeurl, __FILE__);