Remove links from search text

pull/13448/head
Michael 2023-09-22 19:09:23 +00:00
rodzic a8a9f93e09
commit aa429be4d9
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -157,6 +157,8 @@ class Engagement
$body .= ' ' . $item['title'] . ' ' . $item['content-warning'] . ' ' . $item['body'];
$body = preg_replace("~\[url\=.*\]https?:.*\[\/url\]~", '', $body);
$body = Post\Media::addAttachmentsToBody($item['uri-id'], $body);
$text = BBCode::toPlaintext($body, false);