From: Michael Date: Fri, 29 Apr 2022 09:49:16 +0000 (+0000) Subject: Test: Disable magiclink in posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8dc0ab9bb3379fec0be442160db1ae29ef8cea9d;p=friendica.git Test: Disable magiclink in posts --- diff --git a/src/Content/Item.php b/src/Content/Item.php index f6906b7962..5ebd51c1e0 100644 --- a/src/Content/Item.php +++ b/src/Content/Item.php @@ -352,7 +352,7 @@ class Item $item['body'] = $this->l10n->t('%1$s tagged %2$s\'s %3$s with %4$s', $author, $objauthor, $plink, $tag); } } - +/* $matches = null; if (preg_match_all('/@\[url=(.*?)\]/is', $item['body'], $matches, PREG_SET_ORDER)) { foreach ($matches as $mtch) { @@ -361,7 +361,7 @@ class Item } } } - +*/ // add sparkle links to appropriate permalinks // Only create a redirection to a magic link when logged in if (!empty($item['plink']) && Session::isAuthenticated() && $item['private'] == ModelItem::PRIVATE) {