From 82b335dc2ccccf23a364e73d4460423d6844993b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 23 Jan 2015 12:41:51 +0100 Subject: [PATCH] MapstractionPlugin didn't handle notices without URLs --- plugins/Mapstraction/actions/map.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Mapstraction/actions/map.php b/plugins/Mapstraction/actions/map.php index 9834e97f9d..be59f5ba0b 100644 --- a/plugins/Mapstraction/actions/map.php +++ b/plugins/Mapstraction/actions/map.php @@ -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; }