diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-24 18:15:19 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-24 18:15:19 -0700 |
commit | 341386a95ba68227f60964ab50f9b20989ac6802 (patch) | |
tree | e6dcc16a6bc80edd3a7970e596fecbe7cd82d938 /include/conversation.php | |
parent | bd84a3ee08ecbf028af5b3ea672062abc93ab3e1 (diff) | |
download | volse-hubzilla-341386a95ba68227f60964ab50f9b20989ac6802.tar.gz volse-hubzilla-341386a95ba68227f60964ab50f9b20989ac6802.tar.bz2 volse-hubzilla-341386a95ba68227f60964ab50f9b20989ac6802.zip |
make cards searchable
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php index 2d5ccb5b1..5cb85c3f9 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -703,6 +703,9 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0) $is_new = true; + $conv_link = (($item['item_type'] == ITEM_TYPE_CARD) ? $item['plink'] : z_root() . '/display/' . gen_link_id($item['mid'])); + + $tmp_item = array( 'template' => $tpl, 'toplevel' => 'toplevel_item', @@ -757,7 +760,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa 'like' => '', 'dislike' => '', 'comment' => '', - 'conv' => (($preview) ? '' : array('href'=> z_root() . '/display/' . gen_link_id($item['mid']), 'title'=> t('View in context'))), + 'conv' => (($preview) ? '' : array('href'=> $conv_link, 'title'=> t('View in context'))), 'previewing' => $previewing, 'wait' => t('Please wait'), 'thread_level' => 1, |