aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Linkinfo.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-06 19:57:37 -0700
committerzotlabs <mike@macgirvin.com>2018-05-06 19:57:37 -0700
commite646684493f5c3d49e972308aa8a5722877f26ce (patch)
tree5fa10f31bfaffbb0344e092f902c0847eda15a4a /Zotlabs/Module/Linkinfo.php
parent257dcaaf8b56e3db52b62e5b722183aaddeb0a59 (diff)
downloadvolse-hubzilla-e646684493f5c3d49e972308aa8a5722877f26ce.tar.gz
volse-hubzilla-e646684493f5c3d49e972308aa8a5722877f26ce.tar.bz2
volse-hubzilla-e646684493f5c3d49e972308aa8a5722877f26ce.zip
pdf embeds
Diffstat (limited to 'Zotlabs/Module/Linkinfo.php')
-rw-r--r--Zotlabs/Module/Linkinfo.php4
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();
+ }
}
}