-function blockem_install() {
- register_hook('prepare_body', 'addon/blockem/blockem.php', 'blockem_prepare_body');
- register_hook('display_item', 'addon/blockem/blockem.php', 'blockem_display_item');
- register_hook('plugin_settings', 'addon/blockem/blockem.php', 'blockem_addon_settings');
- register_hook('plugin_settings_post', 'addon/blockem/blockem.php', 'blockem_addon_settings_post');
- register_hook('conversation_start', 'addon/blockem/blockem.php', 'blockem_conversation_start');
- register_hook('item_photo_menu', 'addon/blockem/blockem.php', 'blockem_item_photo_menu');
- register_hook('enotify_store', 'addon/blockem/blockem.php', 'blockem_enotify_store' );
+use Friendica\App;
+use Friendica\Core\Hook;
+use Friendica\DI;
+use Friendica\Util\Strings;
+
+function blockem_install()
+{
+ Hook::register('prepare_body_content_filter', 'addon/blockem/blockem.php', 'blockem_prepare_body_content_filter');
+ Hook::register('display_item' , 'addon/blockem/blockem.php', 'blockem_display_item');
+ Hook::register('addon_settings' , 'addon/blockem/blockem.php', 'blockem_addon_settings');
+ Hook::register('addon_settings_post' , 'addon/blockem/blockem.php', 'blockem_addon_settings_post');
+ Hook::register('conversation_start' , 'addon/blockem/blockem.php', 'blockem_conversation_start');
+ Hook::register('item_photo_menu' , 'addon/blockem/blockem.php', 'blockem_item_photo_menu');
+ Hook::register('enotify_store' , 'addon/blockem/blockem.php', 'blockem_enotify_store');