| @@ -101,36 +101,8 @@ | ||
| 101 | 101 | Opengraph::init(); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * Adds Podlove Podcast Publisher support. | |
| 106 | - * | |
| 107 | - * This class handles the compatibility with Podlove Podcast Publisher. | |
| 108 | - * | |
| 109 | - * @see https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/ | |
| 110 | - */ | |
| 111 | - if ( \defined( 'Podlove\PLUGIN_FILE' ) ) { | |
| 112 | - // Enable ActivityPub support for the podcast post type. | |
| 113 | - \add_post_type_support( 'podcast', 'activitypub' ); | |
| 114 | - | |
| 115 | - \add_filter( | |
| 116 | - 'activitypub_transformer', | |
| 117 | - static function ( $transformer, $data, $object_class ) { | |
| 118 | - if ( | |
| 119 | - 'WP_Post' === $object_class && | |
| 120 | - 'podcast' === $data->post_type && | |
| 121 | - \Podlove\Model\Episode::find_one_by_post_id( $data->ID ) | |
| 122 | - ) { | |
| 123 | - return new Podlove_Podcast_Publisher( $data ); | |
| 124 | - } | |
| 125 | - return $transformer; | |
| 126 | - }, | |
| 127 | - 10, | |
| 128 | - 3 | |
| 129 | - ); | |
| 130 | - } | |
| 131 | - | |
| 132 | - /** | |
| 133 | 105 | * Adds Seriously Simple Podcasting support. |
| 134 | 106 | * |
| 135 | 107 | * This class handles the compatibility with Seriously Simple Podcasting. |
| 136 | 108 | * |