1
0
Fork 0

Conversation and Item now handles (dis)like as they should

This commit is contained in:
Domovoy 2012-08-12 17:46:02 +02:00
commit 82d779a33b
3 changed files with 42 additions and 0 deletions

View file

@ -862,9 +862,18 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
$threads = array();
foreach($items as $item) {
// Can we put this after the visibility check?
like_puller($a,$item,$alike,'like');
like_puller($a,$item,$dlike,'dislike');
// Only add what is visible
if($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {
continue;
}
if($item['verb'] === ACTIVITY_LIKE || $item['verb'] === ACTIVITY_DISLIKE) {
continue;
}
if($item['id'] == $item['parent']) {
$item_object = new Item($item);
$conv->add_thread($item_object);