Commit 82b335dc authored by mmn's avatar mmn

MapstractionPlugin didn't handle notices without URLs

parent f8144153
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment