aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-14 22:14:19 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-14 22:14:19 +0200
commitb4e83b65375e62259671749c089d9cd7a2a2967a (patch)
tree3c4b8e18b2dc439530f9515147af4424e1726be1 /include/items.php
parentd616099de6984ad8d45e3b8908367bf5a0b8ab31 (diff)
downloadvolse-hubzilla-b4e83b65375e62259671749c089d9cd7a2a2967a.tar.gz
volse-hubzilla-b4e83b65375e62259671749c089d9cd7a2a2967a.tar.bz2
volse-hubzilla-b4e83b65375e62259671749c089d9cd7a2a2967a.zip
allow photo-items to appear full width if large photos feature is enabled. in prepare_body() split off mentions, tags, categories folders and attachments from body for easier theming. some other little fixes.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index e7cc02579..3b0072956 100755
--- a/include/items.php
+++ b/include/items.php
@@ -889,6 +889,7 @@ function get_item_elements($x,$allow_code = false) {
$arr['mimetype'] = (($x['mimetype']) ? htmlspecialchars($x['mimetype'], ENT_COMPAT,'UTF-8',false) : '');
$arr['obj_type'] = (($x['object_type']) ? htmlspecialchars($x['object_type'], ENT_COMPAT,'UTF-8',false) : '');
$arr['tgt_type'] = (($x['target_type']) ? htmlspecialchars($x['target_type'], ENT_COMPAT,'UTF-8',false) : '');
+ $arr['resource_type'] = (($x['resource_type']) ? htmlspecialchars($x['resource_type'], ENT_COMPAT,'UTF-8',false) : '');
$arr['public_policy'] = (($x['public_scope']) ? htmlspecialchars($x['public_scope'], ENT_COMPAT,'UTF-8',false) : '');
if($arr['public_policy'] === 'public')
@@ -1285,6 +1286,7 @@ function encode_item($item,$mirror = false) {
$x['verb'] = $item['verb'];
$x['object_type'] = $item['obj_type'];
$x['target_type'] = $item['tgt_type'];
+ $x['resource_type'] = $item['resource_type'];
$x['permalink'] = $item['plink'];
$x['location'] = $item['location'];
$x['longlat'] = $item['coord'];