diff options
author | redmatrix <git@macgirvin.com> | 2016-02-02 19:39:47 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-02 19:39:47 -0800 |
commit | a7ed50ecd4b4defbc1d5fdf0bb4fd7d65d08a0fd (patch) | |
tree | 7f72feb65e8f8790d6d80f631d1e608bfed1dd48 /mod/channel.php | |
parent | 06dcaaa821d6229568709e53d104233081c4d3e9 (diff) | |
download | volse-hubzilla-a7ed50ecd4b4defbc1d5fdf0bb4fd7d65d08a0fd.tar.gz volse-hubzilla-a7ed50ecd4b4defbc1d5fdf0bb4fd7d65d08a0fd.tar.bz2 volse-hubzilla-a7ed50ecd4b4defbc1d5fdf0bb4fd7d65d08a0fd.zip |
more zcard tweaks
Diffstat (limited to 'mod/channel.php')
-rw-r--r-- | mod/channel.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mod/channel.php b/mod/channel.php index f88a5bf45..dcccb16b6 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -157,10 +157,8 @@ function channel_content(&$a, $update = 0, $load = false) { $simple_update = (($update) ? " AND item_unseen = 1 " : ''); - if($mid) { - $a->page['htmlhead'] .= "\r\n" . '<link rel="alternate" type="application/json+oembed" href="' . z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . $a->query_string) . '" title="oembed" />' . "\r\n"; - } - + $a->page['htmlhead'] .= "\r\n" . '<link rel="alternate" type="application/json+oembed" href="' . z_root() . '/oep?f=&url=' . urlencode(z_root() . '/' . $a->query_string) . '" title="oembed" />' . "\r\n"; + if($update && $_SESSION['loadtime']) $simple_update = " AND (( item_unseen = 1 AND item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) OR item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) "; if($load) |