]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/PageInfo.php
Issue 9657: Check the age of an item
[friendica.git] / src / Content / PageInfo.php
index 786385c3ef7d4a841efb372650e31ce07cf91fb3..5396bc1bbe96d4d17a3eb55e6d40bf0918b62b76 100644 (file)
@@ -265,7 +265,7 @@ class PageInfo
                }
 
                if (!$matches && $searchNakedUrls) {
-                       preg_match('~(?<=\W|^)(?<![=\]])(https?://.+)$~is', $body, $matches);
+                       preg_match(Strings::autoLinkRegEx(), $body, $matches);
                        if ($matches && !Strings::endsWith($body, $matches[1])) {
                                unset($matches);
                        }