really check for large photos feature

This commit is contained in:
Mario Vavti 2015-10-14 22:24:13 +02:00
parent b4e83b6537
commit f12ebffa39
2 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ class Item extends BaseObject {
$children = $this->get_children(); $children = $this->get_children();
$is_photo = (($item['resource_type'] == 'photo') ? true : false) && feature_enabled($conv->get_profile_owner(),'large_photos'); $is_photo = ((($item['resource_type'] == 'photo') && (feature_enabled($conv->get_profile_owner(),'large_photos'))) ? true : false);
$has_tags = (($body['tags'] || $body['categories'] || $body['mentions'] || $body['attachments'] || $body['folders']) ? true : false); $has_tags = (($body['tags'] || $body['categories'] || $body['mentions'] || $body['attachments'] || $body['folders']) ? true : false);

View File

@ -681,7 +681,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $
$body = prepare_body($item,true); $body = prepare_body($item,true);
$is_photo = (($item['resource_type'] == 'photo') ? true : false); $is_photo = ((($item['resource_type'] == 'photo') && (feature_enabled($conv->get_profile_owner(),'large_photos'))) ? true : false);
$has_tags = (($body['tags'] || $body['categories'] || $body['mentions'] || $body['attachments'] || $body['folders']) ? true : false); $has_tags = (($body['tags'] || $body['categories'] || $body['mentions'] || $body['attachments'] || $body['folders']) ? true : false);
$tmp_item = array( $tmp_item = array(