aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 21:26:09 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 21:26:09 -0700
commit4450170790de3999dc9c6f8876074e76edee8241 (patch)
tree556fccb00499add4268566956541692db68606f2 /include/conversation.php
parent66b032823b4fd941f613b0194bb8412b216cc748 (diff)
downloadvolse-hubzilla-4450170790de3999dc9c6f8876074e76edee8241.tar.gz
volse-hubzilla-4450170790de3999dc9c6f8876074e76edee8241.tar.bz2
volse-hubzilla-4450170790de3999dc9c6f8876074e76edee8241.zip
partial support (unfinished) for ajax loading cards with liveupdate; page still functions even though this isn't finished
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 7e0394058..0d2dd2224 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -517,6 +517,15 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
}
}
+ elseif ($mode === 'cards') {
+ $profile_owner = App::$profile['profile_uid'];
+ $page_writeable = ($profile_owner == local_channel());
+ $live_update_div = '<div id="live-cards"></div>' . "\r\n"
+ . "<script> var profile_uid = " . App::$profile['profile_uid']
+ . "; var netargs = '?f='; var profile_page = " . App::$pager['page'] . "; </script>\r\n";
+ }
+
+
elseif ($mode === 'display') {
$profile_owner = local_channel();
$page_writeable = false;