oembed provider cleanup, add oembed to cards

This commit is contained in:
zotlabs
2017-08-23 20:47:08 -07:00
parent c9745a4129
commit 66b032823b
6 changed files with 139 additions and 14 deletions

View File

@@ -38,6 +38,14 @@ class Cards extends \Zotlabs\Web\Controller {
nav_set_selected(t('Cards'));
head_add_link([
'rel' => 'alternate',
'type' => 'application/json+oembed',
'href' => z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . \App::$query_string),
'title' => 'oembed'
]);
$category = (($_REQUEST['cat']) ? escape_tags(trim($_REQUEST['cat'])) : '');
if($category) {