aboutsummaryrefslogtreecommitdiffstats
path: root/mod/menu.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-27 21:09:21 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-27 21:09:21 -0700
commit12c17f12655d92ef6ec5065fa04e13bc19b68faa (patch)
tree6a91ef782ee0a9e0a8edc55ff8eee1ffee7ff035 /mod/menu.php
parent2dd02cc166fbd3704d7a17437a4248388096c458 (diff)
downloadvolse-hubzilla-12c17f12655d92ef6ec5065fa04e13bc19b68faa.tar.gz
volse-hubzilla-12c17f12655d92ef6ec5065fa04e13bc19b68faa.tar.bz2
volse-hubzilla-12c17f12655d92ef6ec5065fa04e13bc19b68faa.zip
menu encoding for sharing/exchange
Diffstat (limited to 'mod/menu.php')
-rw-r--r--mod/menu.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/menu.php b/mod/menu.php
index 0dbbfde9c..7714b8021 100644
--- a/mod/menu.php
+++ b/mod/menu.php
@@ -78,6 +78,10 @@ function menu_content(&$a) {
$x = menu_list($uid);
if($x) {
for($y = 0; $y < count($x); $y ++) {
+ $m = menu_fetch($x[$y]['menu_name'],$uid,get_observer_hash());
+ if($m)
+ $x[$y]['element'] = '[element]' . base64url_encode(json_encode(menu_element($m))) . '[/element]';
+
$x[$y]['bookmark'] = (($x[$y]['menu_flags'] & MENU_BOOKMARK) ? true : false);
}
}