diff --git a/plugins/Linkback/lib/util.php b/plugins/Linkback/lib/util.php index 8f8388a3d2..94f0d992f4 100644 --- a/plugins/Linkback/lib/util.php +++ b/plugins/Linkback/lib/util.php @@ -5,6 +5,13 @@ function linkback_lenient_target_match($body, $target) { } function linkback_get_source($source, $target) { + // Check if we are pinging ourselves and ignore + $localprefix = common_config('site', 'server') . '/' . common_config('site', 'path'); + if(linkback_lenient_target_match($source, $localprefix)) { + common_debug('Ignoring self ping from ' . $source . ' to ' . $target); + return NULL; + } + $request = HTTPClient::start(); try {