mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +00:00
better handling of reshares containing embeds
This commit is contained in:
parent
8e928d101b
commit
60c57704c6
1 changed files with 8 additions and 8 deletions
|
@ -16,18 +16,18 @@ function share_init(&$a) {
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) {
|
// if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) {
|
||||||
$o .= "\xE2\x99\xb2" . ' [url=' . $r[0]['author-link'] . ']' . $r[0]['author-name'] . '[/url]' . "\n";
|
$o .= "\xE2\x99\xb2" . ' [url=' . $r[0]['author-link'] . ']' . $r[0]['author-name'] . '[/url]' . "\n";
|
||||||
if($r[0]['title'])
|
if($r[0]['title'])
|
||||||
$o .= '[b]' . $r[0]['title'] . '[/b]' . "\n";
|
$o .= '[b]' . $r[0]['title'] . '[/b]' . "\n";
|
||||||
$o .= $r[0]['body'] . "\n";
|
$o .= $r[0]['body'] . "\n";
|
||||||
}
|
// }
|
||||||
else {
|
// else {
|
||||||
$o .= '♲ <a href="' . $r[0]['author-link'] . '">' . $r[0]['author-name'] . '</a><br />';
|
// $o .= '♲ <a href="' . $r[0]['author-link'] . '">' . $r[0]['author-name'] . '</a><br />';
|
||||||
if($r[0]['title'])
|
// if($r[0]['title'])
|
||||||
$o .= '<strong>' . $r[0]['title'] . '</strong><br />';
|
// $o .= '<strong>' . $r[0]['title'] . '</strong><br />';
|
||||||
$o .= bbcode($r[0]['body'], true) . '<br />';
|
// $o .= $r[0]['body'] . "\n";
|
||||||
}
|
// }
|
||||||
echo $o;
|
echo $o;
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue