]> git.mxchange.org Git - friendica.git/commitdiff
Test: Disable magiclink in posts
authorMichael <heluecht@pirati.ca>
Fri, 29 Apr 2022 09:49:16 +0000 (09:49 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 29 Apr 2022 09:49:16 +0000 (09:49 +0000)
src/Content/Item.php

index f6906b79629b142417ca4c77a375d85c09bdca32..5ebd51c1e0ad2d71a48ac92ad56a89a49591e42e 100644 (file)
@@ -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) {