Remove links from search text
This commit is contained in:
parent
a8a9f93e09
commit
aa429be4d9
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ class Engagement
|
||||||
|
|
||||||
$body .= ' ' . $item['title'] . ' ' . $item['content-warning'] . ' ' . $item['body'];
|
$body .= ' ' . $item['title'] . ' ' . $item['content-warning'] . ' ' . $item['body'];
|
||||||
|
|
||||||
|
$body = preg_replace("~\[url\=.*\]https?:.*\[\/url\]~", '', $body);
|
||||||
|
|
||||||
$body = Post\Media::addAttachmentsToBody($item['uri-id'], $body);
|
$body = Post\Media::addAttachmentsToBody($item['uri-id'], $body);
|
||||||
$text = BBCode::toPlaintext($body, false);
|
$text = BBCode::toPlaintext($body, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue