diff options
author | redmatrix <git@macgirvin.com> | 2016-01-31 15:55:27 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-31 15:55:27 -0800 |
commit | a341c889b751055e90eba9b7a14da5b7cd0e8032 (patch) | |
tree | c42867ffbcac204c664522cb1559b7169c797cc1 /mod/photos.php | |
parent | 1f87fef9684a29da91fcb41a5d1d3bd4fb9a4619 (diff) | |
download | volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.tar.gz volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.tar.bz2 volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.zip |
add oembed provider for photos
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php index f1b7aceed..d187e1d45 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -804,6 +804,8 @@ function photos_content(&$a) { if($datatype === 'image') { + $a->page['htmlhead'] .= "\r\n" . '<link rel="alternate" type="application/json+oembed" href="' . z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . $a->cmd) . '" title="oembed" />' . "\r\n"; + // fetch image, item containing image, then comments $ph = q("SELECT id,aid,uid,xchan,resource_id,created,edited,title,`description`,album,filename,`type`,height,width,`size`,scale,photo_usage,is_nsfw,allow_cid,allow_gid,deny_cid,deny_gid FROM `photo` WHERE `uid` = %d AND `resource_id` = '%s' |