diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-06 19:57:37 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-06 19:57:37 -0700 |
commit | e646684493f5c3d49e972308aa8a5722877f26ce (patch) | |
tree | 5fa10f31bfaffbb0344e092f902c0847eda15a4a /Zotlabs/Module | |
parent | 257dcaaf8b56e3db52b62e5b722183aaddeb0a59 (diff) | |
download | volse-hubzilla-e646684493f5c3d49e972308aa8a5722877f26ce.tar.gz volse-hubzilla-e646684493f5c3d49e972308aa8a5722877f26ce.tar.bz2 volse-hubzilla-e646684493f5c3d49e972308aa8a5722877f26ce.zip |
pdf embeds
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Linkinfo.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php index 3392e4114..3f58f3e01 100644 --- a/Zotlabs/Module/Linkinfo.php +++ b/Zotlabs/Module/Linkinfo.php @@ -82,6 +82,10 @@ class Linkinfo extends \Zotlabs\Web\Controller { echo $br . '[audio]' . $url . '[/audio]' . $br; killme(); } + if(strtolower($type) === 'application/pdf' || strtolower($type) === 'application/x-pdf') { + echo $br . '[embed]' . $url . '[/embed]' . $br; + killme(); + } } } |