diff --git a/include/conversation.php b/include/conversation.php index 308b56586..b777e479b 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -784,15 +784,9 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $ if(feature_enabled($profile_owner, 'dislike')) like_puller($a, $item, $conv_responses, 'dislike'); - if($item['obj_type'] === ACTIVITY_OBJ_EVENT) { - like_puller($a, $item, $conv_responses, 'attendyes'); - like_puller($a, $item, $conv_responses, 'attendno'); - like_puller($a, $item, $conv_responses, 'attendmaybe'); - -logger('responses: ' . print_r($conv_responses,true)); - - } - + like_puller($a, $item, $conv_responses, 'attendyes'); + like_puller($a, $item, $conv_responses, 'attendno'); + like_puller($a, $item, $conv_responses, 'attendmaybe'); like_puller($a, $item, $conv_responses, 'agree'); like_puller($a, $item, $conv_responses, 'disagree'); like_puller($a, $item, $conv_responses, 'abstain'); @@ -1024,12 +1018,9 @@ function like_puller($a, $item, &$arr, $mode) { return; break; } -logger('verb: ' . $verb); -if($verb === ACTIVITY_ATTENDNO) - logger('item: ' . $item['verb']); if((activity_match($item['verb'], $verb)) && ($item['id'] != $item['parent'])) { -logger('match:' . $verb); + if($item['author']['xchan_url']) $url = chanlink_url($item['author']['xchan_url']); diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index e5bbacf53..d1d197dc1 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -66,13 +66,13 @@ {{/if}} {{if $item.isevent}} - - - {{/if}} diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 59bb8f918..3d4b7608d 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -65,6 +65,19 @@ {{/if}} + + {{if $item.isevent}} + + + + {{/if}} + @@ -110,63 +123,42 @@
{{if $item.unseen_comments}}
{{/if}} - {{if $item.like_count}} + {{if $item.responses }} +
+ {{foreach $item.responses as $verb=>$response}} + {{if $response.count}}
- - {{if $item.like_list_part}} - + + {{if $response.list_part}} + {{else}} - + {{/if}}
{{/if}} - {{if $item.dislike_count}} -
- - {{if $item.dislike_list_part}} - - {{else}} - - {{/if}} -
+ + {{if $response.list_part}} + {{/if}} + {{/foreach}}
- {{if $item.like_list_part}} - - {{/if}} - {{if $item.dislike_list_part}} - {{/if}} +