pdf embeds

This commit is contained in:
zotlabs
2018-05-06 19:57:37 -07:00
parent 257dcaaf8b
commit e646684493
2 changed files with 22 additions and 2 deletions

View File

@@ -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();
}
}
}