bugfixes
Peter Molnar hello@petermolnar.eu
Thu, 28 Apr 2016 09:08:15 +0000
2 files changed,
10 insertions(+),
10 deletions(-)
M
receiver.php
→
receiver.php
@@ -319,6 +319,9 @@ $post_id = $received->object_id;
$post = get_post ( $post_id ); + // increment retries + static::queue_inc ( $received->id ); + if ( ! static::is_post( $post ) ) { static::debug( " no post found for this mention, try again later, who knows?", 6); //static::queue_del ( $received->id );@@ -331,9 +334,6 @@ static::debug( " this mention was tried earlier and failed too many times, drop it", 5);
//static::queue_del ( $received->id ); continue; } - - // increment retries - static::queue_inc ( $received->id ); // validate target $remote = static::try_receive_remote( $post_id, $received->source, $received->target );
M
sender.php
→
sender.php
@@ -143,7 +143,7 @@ foreach ( $urls as $k => $url )
$urls[ $k ] = strtolower( $url ); // remove all already pinged urls - $pung = get_post_meta( $post->ID, static::pung, false ); + //$pung = get_post_meta( $post->ID, static::pung, false ); /* // retrofill pung from pingback field, temporary@@ -158,7 +158,7 @@ }
} */ - $urls = array_diff ( $urls, $pung ); + //$urls = array_diff ( $urls, $pung ); foreach ( $urls as $target ) {@@ -223,11 +223,11 @@ }
else { static::debug( " sending succeeded!", 5); - $post_types = get_post_types( '', 'names' ); - if ( in_array( $send->object_type, $post_types ) && 0 != $send->object_id ) { - add_post_meta ( $send->object_id, static::pung, $send->target, false ); + //$post_types = get_post_types( '', 'names' ); + //if ( in_array( $send->object_type, $post_types ) && 0 != $send->object_id ) { + //add_post_meta ( $send->object_id, static::pung, $send->target, false ); //add_ping( $send->object_id, $send->target ); - } + //} static::queue_done ( $send->id, $s ); }@@ -285,7 +285,7 @@ return false;
} if ( 200 <= $response['response']['code'] && 300 > $response['response']['code'] ) { - static::debug( "sending succeeded: ${$response['response']['code']}, message: {$response['response']['message']}", 5); + static::debug( "sending succeeded: {$response['response']['code']}, message: {$response['response']['message']}", 5); return true; } else {