-use Friendica\Core\PConfig;
-
-function libertree_install() {
- register_hook('post_local', 'addon/libertree/libertree.php', 'libertree_post_local');
- register_hook('notifier_normal', 'addon/libertree/libertree.php', 'libertree_send');
- register_hook('jot_networks', 'addon/libertree/libertree.php', 'libertree_jot_nets');
- register_hook('connector_settings', 'addon/libertree/libertree.php', 'libertree_settings');
- register_hook('connector_settings_post', 'addon/libertree/libertree.php', 'libertree_settings_post');
-
-}
-function libertree_uninstall() {
- unregister_hook('post_local', 'addon/libertree/libertree.php', 'libertree_post_local');
- unregister_hook('notifier_normal', 'addon/libertree/libertree.php', 'libertree_send');
- unregister_hook('jot_networks', 'addon/libertree/libertree.php', 'libertree_jot_nets');
- unregister_hook('connector_settings', 'addon/libertree/libertree.php', 'libertree_settings');
- unregister_hook('connector_settings_post', 'addon/libertree/libertree.php', 'libertree_settings_post');
+use Friendica\App;
+use Friendica\Content\Text\BBCode;
+use Friendica\Core\Hook;
+use Friendica\Core\Logger;
+use Friendica\Database\DBA;
+use Friendica\DI;
+
+function libertree_install()
+{
+ Hook::register('hook_fork', 'addon/libertree/libertree.php', 'libertree_hook_fork');
+ Hook::register('post_local', 'addon/libertree/libertree.php', 'libertree_post_local');
+ Hook::register('notifier_normal', 'addon/libertree/libertree.php', 'libertree_send');
+ Hook::register('jot_networks', 'addon/libertree/libertree.php', 'libertree_jot_nets');
+ Hook::register('connector_settings', 'addon/libertree/libertree.php', 'libertree_settings');
+ Hook::register('connector_settings_post', 'addon/libertree/libertree.php', 'libertree_settings_post');