]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ShareNotice/ShareNoticePlugin.php
s/bestUrl/getUrl/ for notices and microapp objects
[quix0rs-gnu-social.git] / plugins / ShareNotice / ShareNoticePlugin.php
index fa1323d6f1b9f7c0caa8684e4dc7606a3112fa57..bb09b94605dd853f28eeea8e18f2c2c7b8bea33a 100644 (file)
@@ -104,7 +104,7 @@ abstract class GenericNoticeShareTarget extends NoticeShareTarget
     {
         // TRANS: %s is notice content that is shared on Twitter, Facebook or another platform.
         $pattern = _m('"%s"');
-        $url = $this->notice->bestUrl();
+        $url = $this->notice->getUrl();
         $suffix = ' ' . $url;
         $room = $this->maxLength() - mb_strlen($suffix) - (mb_strlen($pattern) - mb_strlen('%s'));
 
@@ -192,7 +192,7 @@ class FacebookShareTarget extends NoticeShareTarget
     public function targetUrl()
     {
         $args = array(
-            'u' => $this->notice->bestUrl(),
+            'u' => $this->notice->getUrl(),
             // TRANS: %s is notice content that is shared on Twitter, Facebook or another platform.
             't' => sprintf(_m('"%s"'), $this->notice->content),
         );