mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
slight improvement in handling of plaintext feeds
This commit is contained in:
parent
9b4bef8ac4
commit
00bbb9ad36
2 changed files with 10 additions and 3 deletions
|
@ -435,8 +435,15 @@ function get_atom_elements($feed,$item) {
|
|||
|
||||
$res['body'] = @html2bbcode($res['body']);
|
||||
}
|
||||
// else
|
||||
// $res['body'] = escape_tags($res['body']);
|
||||
elseif(! $have_real_body) {
|
||||
|
||||
// it's not one of our messages and it has no tags
|
||||
// so it's probably just text. We'll escape it just to be safe.
|
||||
|
||||
$res['body'] = escape_tags($res['body']);
|
||||
}
|
||||
|
||||
// this tag is obsolete but we keep it for really old sites
|
||||
|
||||
$allow = $item->get_item_tags(NAMESPACE_DFRN,'comment-allow');
|
||||
if($allow && $allow[0]['data'] == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue