aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index d918a865a..544e7aa68 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1375,6 +1375,8 @@ function prepare_body(&$item,$attach = false) {
// }
$is_photo = (($item['obj_type'] === ACTIVITY_OBJ_PHOTO) ? true : false);
+ $photo = '';
+
if($is_photo) {
$object = json_decode($item['object'],true);
$photo = '<a href="' . zid(rawurldecode(get_rel_link($object['link'],'alternate'))) . '"><img style="max-width:' . $object['width'] . 'px; width:100%; height:auto;" src="'. zid(rawurldecode($object['id'])) . '"></a>';