]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/TwitterBridge/twitter.php
Notice URIs are not necessarily URLs.
[quix0rs-gnu-social.git] / plugins / TwitterBridge / twitter.php
index 358c3aa86e036c7a1f83ecdb01f0265780c57adc..4ff1a344a124532ec3c2d063ce661a7e5bd0aaef 100644 (file)
@@ -379,7 +379,7 @@ function format_status($notice)
 
     // Twitter still has a 140-char hardcoded max.
     if (mb_strlen($statustxt) > 140) {
-        $noticeUrl = common_shorten_url($notice->uri);
+        $noticeUrl = common_shorten_url($notice->getUrl());
         $urlLen = mb_strlen($noticeUrl);
         $statustxt = mb_substr($statustxt, 0, 140 - ($urlLen + 3)) . ' … ' . $noticeUrl;
     }