-use Friendica\Content\Text\Plaintext;
-use Friendica\Core\Addon;
-use Friendica\Core\Config;
-use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
-
-function buffer_install() {
- Addon::registerHook('post_local', 'addon/buffer/buffer.php', 'buffer_post_local');
- Addon::registerHook('notifier_normal', 'addon/buffer/buffer.php', 'buffer_send');
- Addon::registerHook('jot_networks', 'addon/buffer/buffer.php', 'buffer_jot_nets');
- Addon::registerHook('connector_settings', 'addon/buffer/buffer.php', 'buffer_settings');
- Addon::registerHook('connector_settings_post', 'addon/buffer/buffer.php', 'buffer_settings_post');
+use Friendica\Core\Hook;
+use Friendica\Core\Logger;
+use Friendica\Core\Protocol;
+use Friendica\Core\Renderer;
+use Friendica\Database\DBA;
+use Friendica\DI;
+use Friendica\Model\ItemContent;
+use Friendica\Util\Proxy as ProxyUtils;
+use Friendica\Util\Strings;
+
+function buffer_install()
+{
+ Hook::register('hook_fork', 'addon/buffer/buffer.php', 'buffer_hook_fork');
+ Hook::register('post_local', 'addon/buffer/buffer.php', 'buffer_post_local');
+ Hook::register('notifier_normal', 'addon/buffer/buffer.php', 'buffer_send');
+ Hook::register('jot_networks', 'addon/buffer/buffer.php', 'buffer_jot_nets');
+ Hook::register('connector_settings', 'addon/buffer/buffer.php', 'buffer_settings');
+ Hook::register('connector_settings_post', 'addon/buffer/buffer.php', 'buffer_settings_post');