diff options
author | Mario <mario@mariovavti.com> | 2022-06-03 08:51:54 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-06-03 08:51:54 +0000 |
commit | 5e112b395ddb80b72891361b259b4d3fafa7efc2 (patch) | |
tree | 89a3b19ce22cea78d09b76b88ab20a1972ea63bd /Zotlabs/Lib/Enotify.php | |
parent | d1a8e7813a5cd695f13339ab0c9cc19daf3f1d94 (diff) | |
download | volse-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/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 59e4d9a4e..07c426960 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -860,7 +860,7 @@ class Enotify { // convert this logic into a json array just like the system notifications $who = (($item['verb'] === ACTIVITY_SHARE) ? 'owner' : 'author'); - $body = html2plain(bbcode($item['body'], ['drop_media']), 75, true); + $body = html2plain(bbcode($item['body'], ['drop_media' => true, 'tryoembed' => false]), 75, true); if ($body) { $body = htmlentities($body, ENT_QUOTES, 'UTF-8', false); } |