updated plugin ActivityPub version 9.1.0
This commit is contained in:
@ -30,8 +30,8 @@ class Seriously_Simple_Podcasting extends Post {
|
||||
public function get_attachment() {
|
||||
$post = $this->item;
|
||||
$attachment = array(
|
||||
'type' => \esc_attr( ucfirst( \get_post_meta( $post->ID, 'episode_type', true ) ?? 'Audio' ) ),
|
||||
'url' => \esc_url( \get_post_meta( $post->ID, 'audio_file', true ) ),
|
||||
'type' => \esc_attr( \ucfirst( \get_post_meta( $post->ID, 'episode_type', true ) ?? 'Audio' ) ),
|
||||
'url' => \esc_url_raw( \get_post_meta( $post->ID, 'audio_file', true ) ),
|
||||
'name' => \esc_attr( \get_the_title( $post->ID ) ?? '' ),
|
||||
);
|
||||
|
||||
@ -41,7 +41,7 @@ class Seriously_Simple_Podcasting extends Post {
|
||||
}
|
||||
|
||||
if ( $icon ) {
|
||||
$attachment['icon'] = \esc_url( object_to_uri( $icon ) );
|
||||
$attachment['icon'] = \esc_url_raw( object_to_uri( $icon ) );
|
||||
}
|
||||
|
||||
return array( $attachment );
|
||||
|
||||
Reference in New Issue
Block a user