aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-22 18:39:23 -0800
committerzotlabs <mike@macgirvin.com>2017-11-22 18:39:23 -0800
commit8fcf16ee63c86667afe5646ea46d56dd1c96aa08 (patch)
tree700b77391865b8380d6dede5006e381517618dae /include/conversation.php
parent4fc8416c3cecb3ece3523a1c5e36ab4d8cd8eb73 (diff)
downloadvolse-hubzilla-8fcf16ee63c86667afe5646ea46d56dd1c96aa08.tar.gz
volse-hubzilla-8fcf16ee63c86667afe5646ea46d56dd1c96aa08.tar.bz2
volse-hubzilla-8fcf16ee63c86667afe5646ea46d56dd1c96aa08.zip
optional divider between item header and body
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 8c75389c4..63d503177 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -628,13 +628,14 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
// "New Item View" on network page or search page results
// - just loop through the items and format them minimally for display
-
- //$tpl = get_markup_template('search_item.tpl');
$tpl = 'search_item.tpl';
foreach($items as $item) {
- $x = [ 'mode' => $mode, 'item' => $item ];
+ $x = [
+ 'mode' => $mode,
+ 'item' => $item
+ ];
call_hooks('stream_item',$x);
if($x['item']['blocked'])
@@ -655,14 +656,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
if(((activity_match($item['verb'],ACTIVITY_LIKE)) || (activity_match($item['verb'],ACTIVITY_DISLIKE)))
&& ($item['id'] != $item['parent']))
continue;
-// $nickname = $item['nickname'];
}
-// else
-// $nickname = App::$user['nickname'];
-
-// $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
-// if($item['author-link'] && (! $item['author-name']))
-// $profile_name = $item['author-link'];
$sp = false;
$profile_link = best_link_url($item,$sp);
@@ -671,8 +665,6 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
else
$profile_link = zid($profile_link);
-// $normalised = normalise_link((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
-
$profile_name = $item['author']['xchan_name'];
$profile_link = $item['author']['xchan_url'];
$profile_avatar = $item['author']['xchan_photo_m'];
@@ -768,6 +760,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
'editedtime' => (($item['edited'] != $item['created']) ? sprintf( t('last edited: %s'), datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r')) : ''),
'expiretime' => (($item['expires'] > NULL_DATE) ? sprintf( t('Expires: %s'), datetime_convert('UTC', date_default_timezone_get(), $item['expires'], 'r')):''),
'location' => $location,
+ 'divider' => false,
'indent' => '',
'owner_name' => $owner_name,
'owner_url' => $owner_url,