]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Tweak to OStatus long message cropping: use original source notice URL for the link...
authorBrion Vibber <brion@pobox.com>
Thu, 25 Mar 2010 23:08:09 +0000 (16:08 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 25 Mar 2010 23:08:09 +0000 (16:08 -0700)
Conflicts:

plugins/OStatus/classes/Ostatus_profile.php

plugins/OStatus/classes/Ostatus_profile.php

index 0abc1ee19a8e9616a96d4db9d6b4d50761a9f856..34bff548dbf15d769a8133c84a05cb4055a91229 100644 (file)
@@ -550,8 +550,7 @@ class Ostatus_profile extends Memcached_DataObject
             }
             $shortSummary = common_shorten_links($summary);
             if (Notice::contentTooLong($shortSummary)) {
-                $url = common_shorten_url(common_local_url('attachment',
-                                                           array('attachment' => $attachment->id)));
+                $url = common_shorten_url($sourceUrl);
                 $shortSummary = substr($shortSummary,
                                        0,
                                        Notice::maxContent() - (mb_strlen($url) + 2));