aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Notes.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-06-03 08:51:54 +0000
committerMario <mario@mariovavti.com>2022-06-03 08:51:54 +0000
commit5e112b395ddb80b72891361b259b4d3fafa7efc2 (patch)
tree89a3b19ce22cea78d09b76b88ab20a1972ea63bd /Zotlabs/Widget/Notes.php
parentd1a8e7813a5cd695f13339ab0c9cc19daf3f1d94 (diff)
downloadvolse-hubzilla-5e112b395ddb80b72891361b259b4d3fafa7efc2.tar.gz
volse-hubzilla-5e112b395ddb80b72891361b259b4d3fafa7efc2.tar.bz2
volse-hubzilla-5e112b395ddb80b72891361b259b4d3fafa7efc2.zip
oembed: implement a max oembed size which defaults to 1MB and do not try to oembed text previews
Diffstat (limited to 'Zotlabs/Widget/Notes.php')
-rw-r--r--Zotlabs/Widget/Notes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Notes.php b/Zotlabs/Widget/Notes.php
index c9d08c6b7..836159edd 100644
--- a/Zotlabs/Widget/Notes.php
+++ b/Zotlabs/Widget/Notes.php
@@ -31,7 +31,7 @@ class Notes {
$o = replace_macros($tpl, array(
'$text' => $text,
- '$html' => bbcode($text),
+ '$html' => bbcode($text, ['tryoembed' => false]),
'$app' => ((isset($arr['app'])) ? true : false),
'$hidden' => ((isset($arr['hidden'])) ? true : false),
'$strings' => [