bugfix
This commit is contained in:
parent
f45c881815
commit
2c992c5969
1 changed files with 5 additions and 4 deletions
|
@ -1590,7 +1590,7 @@
|
||||||
$sender = $user_info;
|
$sender = $user_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret[]=Array(
|
$d=Array(
|
||||||
'id' => $item['id'],
|
'id' => $item['id'],
|
||||||
'created_at'=> api_date($item['created']),
|
'created_at'=> api_date($item['created']),
|
||||||
'sender_id'=> $sender['id'] ,
|
'sender_id'=> $sender['id'] ,
|
||||||
|
@ -1603,13 +1603,14 @@
|
||||||
);
|
);
|
||||||
//don't send title to regular StatusNET requests to avoid confusing these apps
|
//don't send title to regular StatusNET requests to avoid confusing these apps
|
||||||
if (isset($_GET["getText"])) {
|
if (isset($_GET["getText"])) {
|
||||||
$ret['title'] = $item['title'] ;
|
$d['title'] = $item['title'] ;
|
||||||
if ($_GET["getText"] == "true") {
|
if ($_GET["getText"] == "true") {
|
||||||
$ret['text'] = html2plain(bbcode($item['body']), 0);
|
$d['text'] = html2plain(bbcode($item['body']), 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ret['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0);
|
$d['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0);
|
||||||
}
|
}
|
||||||
|
$ret[]=$d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue