Skip to content

Commit

Permalink
Fixed: Content handling for Podcasts (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Sep 9, 2024
1 parent e6c8689 commit 15cff15
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.2.1] - 2024-09-09

### Fixed

* Fixed: Use `Excerpt` for Podcast Episodes

## [3.2.0] - 2024-09-09

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

* initial

[3.2.1]: https://github.com/Automattic/wordpress-activitypub/compare/3.2.0...3.2.1
[3.2.0]: https://github.com/Automattic/wordpress-activitypub/compare/3.1.0...3.2.0
[3.1.0]: https://github.com/Automattic/wordpress-activitypub/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/Automattic/wordpress-activitypub/compare/2.6.1...3.0.0
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Tags:** OStatus, fediverse, activitypub, activitystream
**Requires at least:** 5.5
**Tested up to:** 6.6
**Stable tag:** 3.2.0
**Stable tag:** 3.2.1
**Requires PHP:** 7.0
**License:** MIT
**License URI:** http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -134,6 +134,10 @@ For reasons of data protection, it is not possible to see the followers of other

## Changelog ##

### 3.2.1 ###

* Fixed: Use `Excerpt` for Podcast Episodes

### 3.2.0 ###

* Added: Support for Seriously Simple Podcasting
Expand Down
4 changes: 2 additions & 2 deletions activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: ActivityPub
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
* Version: 3.2.0
* Version: 3.2.1
* Author: Matthias Pfefferle & Automattic
* Author URI: https://automattic.com/
* License: MIT
Expand All @@ -21,7 +21,7 @@
require_once __DIR__ . '/includes/compat.php';
require_once __DIR__ . '/includes/functions.php';

\define( 'ACTIVITYPUB_PLUGIN_VERSION', '3.2.0' );
\define( 'ACTIVITYPUB_PLUGIN_VERSION', '3.2.1' );

/**
* Initialize the plugin constants.
Expand Down
13 changes: 13 additions & 0 deletions integration/class-seriously-simple-podcasting.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

use Activitypub\Transformer\Post;

use function Activitypub\generate_post_summary;

/**
* Compatibility with the Seriously Simple Podcasting plugin.
*
Expand Down Expand Up @@ -46,4 +48,15 @@ public function get_attachment() {
public function get_type() {
return 'Note';
}

/**
* Returns the content for the ActivityPub Item.
*
* The content will be generated based on the user settings.
*
* @return string The content.
*/
public function get_content() {
return generate_post_summary( $this->wp_object );
}
}
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: automattic, pfefferle, mediaformat, mattwiebe, akirk, jeherve, nur
Tags: OStatus, fediverse, activitypub, activitystream
Requires at least: 5.5
Tested up to: 6.6
Stable tag: 3.2.0
Stable tag: 3.2.1
Requires PHP: 7.0
License: MIT
License URI: http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -134,6 +134,10 @@ For reasons of data protection, it is not possible to see the followers of other

== Changelog ==

= 3.2.1 =

* Fixed: Use `Excerpt` for Podcast Episodes

= 3.2.0 =

* Added: Support for Seriously Simple Podcasting
Expand Down

0 comments on commit 15cff15

Please sign in to comment.