aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Cards.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 20:47:08 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 20:47:08 -0700
commit66b032823b4fd941f613b0194bb8412b216cc748 (patch)
tree7144fefaac0d2e2fa638bde7d41d28957dd6541c /Zotlabs/Module/Cards.php
parentc9745a41295337444832f0c787d0dd4fb3425e1f (diff)
downloadvolse-hubzilla-66b032823b4fd941f613b0194bb8412b216cc748.tar.gz
volse-hubzilla-66b032823b4fd941f613b0194bb8412b216cc748.tar.bz2
volse-hubzilla-66b032823b4fd941f613b0194bb8412b216cc748.zip
oembed provider cleanup, add oembed to cards
Diffstat (limited to 'Zotlabs/Module/Cards.php')
-rw-r--r--Zotlabs/Module/Cards.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Module/Cards.php b/Zotlabs/Module/Cards.php
index 33688cba0..f354544d5 100644
--- a/Zotlabs/Module/Cards.php
+++ b/Zotlabs/Module/Cards.php
@@ -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) {