mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:50:17 +00:00
Avoid proxyfying images that are removed or replaced later
This commit is contained in:
parent
a5176cb841
commit
90588ddb8e
5 changed files with 8 additions and 7 deletions
|
@ -744,7 +744,7 @@ class Processor
|
|||
$title = $matches[3];
|
||||
}
|
||||
|
||||
$title = trim(HTML::toPlaintext(BBCode::convert($title, false, BBCode::API, true), 0));
|
||||
$title = trim(BBCode::toPlaintext($title));
|
||||
|
||||
if (strlen($title) > 20) {
|
||||
$title = substr($title, 0, 20) . '...';
|
||||
|
|
|
@ -1199,7 +1199,7 @@ class Feed
|
|||
// Remove the share element before fetching the first line
|
||||
$title = trim(preg_replace("/\[share.*?\](.*?)\[\/share\]/ism","\n$1\n",$item['body']));
|
||||
|
||||
$title = HTML::toPlaintext(BBCode::convert($title, false), 0, true)."\n";
|
||||
$title = BBCode::toPlaintext($title)."\n";
|
||||
$pos = strpos($title, "\n");
|
||||
$trailer = "";
|
||||
if (($pos == 0) || ($pos > 100)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue