mirror of
https://github.com/friendica/friendica
synced 2024-11-10 09:42:54 +00:00
make it selectable
This commit is contained in:
parent
111ace5abd
commit
11b6beae06
1 changed files with 3 additions and 1 deletions
|
@ -1604,8 +1604,10 @@
|
|||
//don't send title to regular StatusNET requests to avoid confusing these apps
|
||||
if (isset($_GET["getText"])) {
|
||||
$d['title'] = $item['title'] ;
|
||||
if ($_GET["getText"] == "true") {
|
||||
if ($_GET["getText"] == "html") {
|
||||
$d['text'] = bbcode($item['body']);
|
||||
} elseif ($_GET["getText"] == "plain") {
|
||||
$d['text'] = html2plain(bbcode($item['body']), 0);
|
||||
}
|
||||
} else {
|
||||
$d['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0);
|
||||
|
|
Loading…
Reference in a new issue