]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Linkback plugin does pingback by default
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 28 Mar 2009 21:11:21 +0000 (17:11 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 28 Mar 2009 21:11:21 +0000 (17:11 -0400)
We do pingback by default for the linkback plugin.

plugins/LinkbackPlugin.php

index 1b5365100eb686c8687b1191073dc640221ea6e5..56a26176b1ee0104df0896d4794b157a12b4e77c 100644 (file)
@@ -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;