aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-13 10:39:40 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-13 10:39:40 +0200
commitd5f59a57bf2689874f2171e0c4a2354d12597f34 (patch)
tree11b63c5dc536292e51394ddd8f42ff6bf6d129f7 /include/bbcode.php
parent7465c798847198238a991b302e8f6537896b9c3e (diff)
downloadvolse-hubzilla-d5f59a57bf2689874f2171e0c4a2354d12597f34.tar.gz
volse-hubzilla-d5f59a57bf2689874f2171e0c4a2354d12597f34.tar.bz2
volse-hubzilla-d5f59a57bf2689874f2171e0c4a2354d12597f34.zip
don't do oembed processing on naked links and smarty lib cleanup. ported from zap.
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 1c153677d..a675451f1 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -87,12 +87,11 @@ function nakedoembed($match) {
$strip_url = strip_escaped_zids($url);
- $o = oembed_fetch_url($strip_url);
-
- if ($o['type'] == 'error')
- return str_replace($url,$strip_url,$match[0]);
-
- return '[embed]' . $strip_url . '[/embed]';
+ // this function no longer performs oembed on naked links
+ // because they author may have created naked links intentionally.
+ // Now it just strips zids on naked links.
+
+ return str_replace($url,$strip_url,$match[0]);
}
function tryzrlaudio($match) {