forked from GNUsocial/gnu-social
Fix bad merge d7ae0ed4fd755ebad0788a17d0f2fb6a6ca9d63b
This commit is contained in:
parent
fcff85bb36
commit
5bad7040b1
11
lib/omb.php
11
lib/omb.php
@ -80,14 +80,9 @@ function omb_broadcast_notice($notice)
|
|||||||
$posted = array();
|
$posted = array();
|
||||||
|
|
||||||
while ($rp->fetch()) {
|
while ($rp->fetch()) {
|
||||||
if (!array_key_exists($rp->postnoticeurl, $posted)) {
|
if (isset($posted[$rp->postnoticeurl])) {
|
||||||
common_log(LOG_DEBUG, 'Posting to ' . $rp->postnoticeurl);
|
/* We already posted to this url. */
|
||||||
if (omb_post_notice_keys($notice, $rp->postnoticeurl, $rp->token, $rp->secret)) {
|
continue;
|
||||||
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__);
|
common_debug('Posting to ' . $rp->postnoticeurl, __FILE__);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user