bookmarks fail to sync
This commit is contained in:
parent
2c1560e027
commit
3cc66b6816
@ -59,7 +59,7 @@ class Bookmarks extends \Zotlabs\Web\Controller {
|
||||
killme();
|
||||
}
|
||||
|
||||
function get() {
|
||||
function get() {
|
||||
if(! local_channel()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return;
|
||||
|
@ -59,9 +59,10 @@ function bookmark_add($channel,$sender,$taxonomy,$private,$opts = null) {
|
||||
);
|
||||
if($r)
|
||||
logger('add_bookmark: duplicate menu entry', LOGGER_DEBUG);
|
||||
if(! $r)
|
||||
if(! $r) {
|
||||
$r = menu_add_item($menu_id,$channel_id,$iarr);
|
||||
|
||||
menu_sync_packet($channel_id,get_observer_hash(),$menu_id);
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user