]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Linkback/LinkbackPlugin.php
Merge commit 'refs/merge-requests/36' of https://gitorious.org/social/mainline into...
[quix0rs-gnu-social.git] / plugins / Linkback / LinkbackPlugin.php
index c40000921c15ed0529f2b2e3c61fe7ad085cfcdb..597ac1f4469f8948e88f328408ee60d3f1894b0a 100644 (file)
@@ -201,11 +201,13 @@ class LinkbackPlugin extends Plugin
     {
         $profile = $this->notice->getProfile();
 
+        // TRANS: Trackback title.
+        // TRANS: %1$s is a profile nickname, %2$s is a timestamp.
         $args = array('title' => sprintf(_m('%1$s\'s status on %2$s'),
                                          $profile->nickname,
                                          common_exact_date($this->notice->created)),
                       'excerpt' => $this->notice->content,
-                      'url' => $this->notice->uri,
+                      'url' => $this->notice->getUrl(),
                       'blog_name' => $profile->nickname);
 
         $fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
@@ -225,10 +227,9 @@ class LinkbackPlugin extends Plugin
         }
     }
 
-    function userAgent()
+    public function version()
     {
-        return 'LinkbackPlugin/'.LINKBACKPLUGIN_VERSION .
-          ' StatusNet/' . STATUSNET_VERSION;
+        return LINKBACKPLUGIN_VERSION;
     }
 
     function onPluginVersion(&$versions)
@@ -238,6 +239,7 @@ class LinkbackPlugin extends Plugin
                             'author' => 'Evan Prodromou',
                             'homepage' => 'http://status.net/wiki/Plugin:Linkback',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Notify blog authors when their posts have been linked in '.
                                'microblog notices using '.
                                '<a href="http://www.hixie.ch/specs/pingback/pingback">Pingback</a> '.