]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
MapstractionPlugin didn't handle notices without URLs
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 23 Jan 2015 11:41:51 +0000 (12:41 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 23 Jan 2015 11:41:51 +0000 (12:41 +0100)
plugins/Mapstraction/actions/map.php

index 9834e97f9d1c53d09bc064087f382c7e426ae141..be59f5ba0b5ecb63f755dbeb8ac853a9e4a3649f 100644 (file)
@@ -143,14 +143,14 @@ class MapAction extends Action
         $act = new ApiAction('/dev/null');
 
         $arr = $act->twitterStatusArray($notice, true);
-        $arr['url'] = $notice->getUrl();
+        $arr['url'] = $notice->getUrl(true);
         $arr['html'] = $notice->rendered;
         $arr['source'] = $arr['source'];
 
         if (!empty($notice->reply_to)) {
             $reply_to = Notice::getKV('id', $notice->reply_to);
             if (!empty($reply_to)) {
-                $arr['in_reply_to_status_url'] = $reply_to->getUrl();
+                $arr['in_reply_to_status_url'] = $reply_to->getUrl(true);
             }
             $reply_to = null;
         }