aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-22 11:37:34 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-22 11:37:34 +0200
commit735f9c7a45fc1f5b149bb1798a2d438516655a5c (patch)
treed59909aaec65f6ef7228ee317762723732dc90ab /include/text.php
parent6f8d29ad8076fc53019739cdc9afa3d15d250d8e (diff)
downloadvolse-hubzilla-735f9c7a45fc1f5b149bb1798a2d438516655a5c.tar.gz
volse-hubzilla-735f9c7a45fc1f5b149bb1798a2d438516655a5c.tar.bz2
volse-hubzilla-735f9c7a45fc1f5b149bb1798a2d438516655a5c.zip
define $photo
Diffstat (limited to 'include/text.php')
-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>';