From 4442da306a6a2ac88c6dd0ab10b21616fb66daf0 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 25 Oct 2015 18:02:45 +0100 Subject: hubzilla compatibility: improve photo item object - we now provide the infos for all available photo sizes --- include/text.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index 2a8905efe..c3abaeedf 100644 --- a/include/text.php +++ b/include/text.php @@ -1449,7 +1449,8 @@ function prepare_body(&$item,$attach = false) { $is_photo = (($item['obj_type'] === ACTIVITY_OBJ_PHOTO) ? true : false); if($is_photo) { $object = json_decode($item['object'],true); - $s = ''; + $scale = ((($object['link'][1]['width'] == 1024) || ($object['link'][1]['height'] == 1024)) ? 1 : 0); + $s = '
'; } $s .= prepare_text($item['body'],$item['mimetype']); -- cgit v1.2.3