bookmarks fail to sync

This commit is contained in:
zotlabs 2018-09-20 16:07:32 -07:00
parent 2c1560e027
commit 3cc66b6816
2 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class Bookmarks extends \Zotlabs\Web\Controller {
killme(); killme();
} }
function get() { function get() {
if(! local_channel()) { if(! local_channel()) {
notice( t('Permission denied.') . EOL); notice( t('Permission denied.') . EOL);
return; return;

View File

@ -59,9 +59,10 @@ function bookmark_add($channel,$sender,$taxonomy,$private,$opts = null) {
); );
if($r) if($r)
logger('add_bookmark: duplicate menu entry', LOGGER_DEBUG); logger('add_bookmark: duplicate menu entry', LOGGER_DEBUG);
if(! $r) if(! $r) {
$r = menu_add_item($menu_id,$channel_id,$iarr); $r = menu_add_item($menu_id,$channel_id,$iarr);
menu_sync_packet($channel_id,get_observer_hash(),$menu_id);
}
return $r; return $r;
} }