From f181d752c284319b747cba0888ae410c1d7e7197 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Sun, 17 Mar 2024 17:28:14 +0100 Subject: [PATCH] Enable Link Manager to manage peers. --- includes/handler/class-instance.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/handler/class-instance.php b/includes/handler/class-instance.php index 5139eca..1ffc5b9 100644 --- a/includes/handler/class-instance.php +++ b/includes/handler/class-instance.php @@ -37,6 +37,9 @@ public function register_hooks() { add_filter( 'mastodon_api_instance_v2', array( $this, 'api_instance' ) ); add_filter( 'mastodon_api_instance_extended_description', array( $this, 'api_instance_extended_description' ) ); add_action( 'update_option_blogdescription', array( $this, 'save_created_at' ) ); + + // Enable the link manager so peers can be added/updated. + add_filter( 'pre_option_link_manager_enabled', '__return_true' ); } /**