From: Evan Prodromou Date: Sat, 28 Mar 2009 21:11:21 +0000 (-0400) Subject: Linkback plugin does pingback by default X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4919eab6a5f01c3220507790f16c55dd4dbc1f6;p=quix0rs-gnu-social.git Linkback plugin does pingback by default We do pingback by default for the linkback plugin. --- diff --git a/plugins/LinkbackPlugin.php b/plugins/LinkbackPlugin.php index 1b5365100e..56a26176b1 100644 --- a/plugins/LinkbackPlugin.php +++ b/plugins/LinkbackPlugin.php @@ -105,12 +105,13 @@ class LinkbackPlugin extends Plugin $pb = $match[1]; } - $tb = $this->getTrackback($result->body, $result->final_url); - - if (!empty($tb)) { - $this->trackback($result->final_url, $tb); - } else if (!empty($pb)) { + if (!empty($pb)) { $this->pingback($result->final_url, $pb); + } else { + $tb = $this->getTrackback($result->body, $result->final_url); + if (!empty($tb)) { + $this->trackback($result->final_url, $tb); + } } return $orig;