aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Oep.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-21 15:00:45 -0700
committerzotlabs <mike@macgirvin.com>2017-08-21 15:00:45 -0700
commit894f0156afdb605883af4c3419ead4aec09617da (patch)
tree08ef4576df5578cdc18bfa39c9f61aa3c8672173 /Zotlabs/Module/Oep.php
parent9d5b6858ea627b5eb6115cacd870ef0277f87b2a (diff)
downloadvolse-hubzilla-894f0156afdb605883af4c3419ead4aec09617da.tar.gz
volse-hubzilla-894f0156afdb605883af4c3419ead4aec09617da.tar.bz2
volse-hubzilla-894f0156afdb605883af4c3419ead4aec09617da.zip
more work on oembed from /display
Diffstat (limited to 'Zotlabs/Module/Oep.php')
-rw-r--r--Zotlabs/Module/Oep.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Oep.php b/Zotlabs/Module/Oep.php
index a3453ff31..6469a7007 100644
--- a/Zotlabs/Module/Oep.php
+++ b/Zotlabs/Module/Oep.php
@@ -66,9 +66,9 @@ class Oep extends \Zotlabs\Web\Controller {
$url = $args['url'];
$maxwidth = intval($args['maxwidth']);
$maxheight = intval($args['maxheight']);
-
- if(preg_match('#//display/(.*?)(&|\?|$)#',$url,$matches)) {
- $res = $matches[1];
+ logger('processing display');
+ if(preg_match('#//(.*?)/display/(.*?)(&|\?|$)#',$url,$matches)) {
+ $res = $matches[2];
}
if(strpos($res,'b64.') === 0) {
@@ -78,7 +78,7 @@ class Oep extends \Zotlabs\Web\Controller {
$item_normal = item_normal();
$p = q("select * from item where mid like '%s' limit 1",
- dbesc($res . '%'),
+ dbesc($res . '%')
);
if(! $p)