Skip to content

Commit

Permalink
Don't forget about Trean..remove bookmark from Content on deletion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 16, 2015
1 parent ecd9ca3 commit e8e9479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trean/lib/Bookmarks.php
Expand Up @@ -229,6 +229,8 @@ public function removeBookmark(Trean_Bookmark $bookmark)
/* Untag */
$tagger = $GLOBALS['injector']->getInstance('Trean_Tagger');
$tagger->replaceTags((string)$bookmark->id, array(), $GLOBALS['registry']->getAuth(), 'bookmark');
$GLOBALS['injector']->getInstance('Content_Objects_Mapper')
->delete($bookmark->id, 'bookmark');

/* @TODO delete from content index? */
//$indexer->index('horde-user-' . $this->_userId, 'trean-bookmark', $this->_bookmarkId, json_encode(array(
Expand Down

0 comments on commit e8e9479

Please sign in to comment.