From 47b7d8410fb69be1a5145c8dfb36cff01d876ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 25 Nov 2023 10:27:59 +0100 Subject: [PATCH] cleanup: remove function get_post_content_template that is now present in parent base transformer class --- includes/transformer/class-post.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/includes/transformer/class-post.php b/includes/transformer/class-post.php index e89adbb..70fbc47 100644 --- a/includes/transformer/class-post.php +++ b/includes/transformer/class-post.php @@ -107,24 +107,5 @@ class Post extends Base { return $object_type; } - /** - * Gets the template to use to generate the content of the activitypub item. - * - * @return string The Template. - */ - protected function get_post_content_template() { - if ( 'excerpt' === \get_option( 'activitypub_post_content_type', 'content' ) ) { - return "[ap_excerpt]\n\n[ap_permalink type=\"html\"]"; - } - if ( 'title' === \get_option( 'activitypub_post_content_type', 'content' ) ) { - return "[ap_title]\n\n[ap_permalink type=\"html\"]"; - } - - if ( 'content' === \get_option( 'activitypub_post_content_type', 'content' ) ) { - return "[ap_content]\n\n[ap_permalink type=\"html\"]\n\n[ap_hashtags]"; - } - - return \get_option( 'activitypub_custom_post_content', ACTIVITYPUB_CUSTOM_POST_CONTENT ); - } }