aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-31 20:44:54 -0800
committerredmatrix <git@macgirvin.com>2016-01-31 20:44:54 -0800
commit01b5b1347521951ca78b1718b03c45897800bf5e (patch)
tree763577a8373b26426dc131c58f6a7f8c9c9213bf /mod/photos.php
parentfd9f792f90c2aa173627d38685829ac94909763e (diff)
downloadvolse-hubzilla-01b5b1347521951ca78b1718b03c45897800bf5e.tar.gz
volse-hubzilla-01b5b1347521951ca78b1718b03c45897800bf5e.tar.bz2
volse-hubzilla-01b5b1347521951ca78b1718b03c45897800bf5e.zip
oep for the photo top page
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 7864b9a18..d6105c580 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1232,6 +1232,9 @@ function photos_content(&$a) {
// Default - show recent photos with upload link (if applicable)
//$o = '';
+ $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";
+
+
$r = q("SELECT `resource_id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` != '%s' AND `album` != '%s'
and photo_usage in ( %d, %d ) and is_nsfw = %d $sql_extra GROUP BY `resource_id`",
intval($a->data['channel']['channel_id']),