Skip to content

Commit 15cff15

Browse files
authored
Fixed: Content handling for Podcasts (#883)
1 parent e6c8689 commit 15cff15

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.2.1] - 2024-09-09
9+
10+
### Fixed
11+
12+
* Fixed: Use `Excerpt` for Podcast Episodes
13+
814
## [3.2.0] - 2024-09-09
915

1016
### Added
@@ -885,6 +891,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
885891

886892
* initial
887893

894+
[3.2.1]: https://github.com/Automattic/wordpress-activitypub/compare/3.2.0...3.2.1
888895
[3.2.0]: https://github.com/Automattic/wordpress-activitypub/compare/3.1.0...3.2.0
889896
[3.1.0]: https://github.com/Automattic/wordpress-activitypub/compare/3.0.0...3.1.0
890897
[3.0.0]: https://github.com/Automattic/wordpress-activitypub/compare/2.6.1...3.0.0

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**Tags:** OStatus, fediverse, activitypub, activitystream
44
**Requires at least:** 5.5
55
**Tested up to:** 6.6
6-
**Stable tag:** 3.2.0
6+
**Stable tag:** 3.2.1
77
**Requires PHP:** 7.0
88
**License:** MIT
99
**License URI:** http://opensource.org/licenses/MIT
@@ -134,6 +134,10 @@ For reasons of data protection, it is not possible to see the followers of other
134134

135135
## Changelog ##
136136

137+
### 3.2.1 ###
138+
139+
* Fixed: Use `Excerpt` for Podcast Episodes
140+
137141
### 3.2.0 ###
138142

139143
* Added: Support for Seriously Simple Podcasting

activitypub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ActivityPub
44
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
55
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
6-
* Version: 3.2.0
6+
* Version: 3.2.1
77
* Author: Matthias Pfefferle & Automattic
88
* Author URI: https://automattic.com/
99
* License: MIT
@@ -21,7 +21,7 @@
2121
require_once __DIR__ . '/includes/compat.php';
2222
require_once __DIR__ . '/includes/functions.php';
2323

24-
\define( 'ACTIVITYPUB_PLUGIN_VERSION', '3.2.0' );
24+
\define( 'ACTIVITYPUB_PLUGIN_VERSION', '3.2.1' );
2525

2626
/**
2727
* Initialize the plugin constants.

integration/class-seriously-simple-podcasting.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
use Activitypub\Transformer\Post;
55

6+
use function Activitypub\generate_post_summary;
7+
68
/**
79
* Compatibility with the Seriously Simple Podcasting plugin.
810
*
@@ -46,4 +48,15 @@ public function get_attachment() {
4648
public function get_type() {
4749
return 'Note';
4850
}
51+
52+
/**
53+
* Returns the content for the ActivityPub Item.
54+
*
55+
* The content will be generated based on the user settings.
56+
*
57+
* @return string The content.
58+
*/
59+
public function get_content() {
60+
return generate_post_summary( $this->wp_object );
61+
}
4962
}

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: automattic, pfefferle, mediaformat, mattwiebe, akirk, jeherve, nur
33
Tags: OStatus, fediverse, activitypub, activitystream
44
Requires at least: 5.5
55
Tested up to: 6.6
6-
Stable tag: 3.2.0
6+
Stable tag: 3.2.1
77
Requires PHP: 7.0
88
License: MIT
99
License URI: http://opensource.org/licenses/MIT
@@ -134,6 +134,10 @@ For reasons of data protection, it is not possible to see the followers of other
134134

135135
== Changelog ==
136136

137+
= 3.2.1 =
138+
139+
* Fixed: Use `Excerpt` for Podcast Episodes
140+
137141
= 3.2.0 =
138142

139143
* Added: Support for Seriously Simple Podcasting

0 commit comments

Comments
 (0)