Skip to content

Federate the Podlove episode summary#3457

Open
pfefferle wants to merge 10 commits into
trunkfrom
add/podlove-episode-summary
Open

Federate the Podlove episode summary#3457
pfefferle wants to merge 10 commits into
trunkfrom
add/podlove-episode-summary

Conversation

@pfefferle

Copy link
Copy Markdown
Member

Podlove stores an episode's summary separately from post_content, so it was
never federated. Override the transformer's get_summary() to prefer the episode
summary (falling back to the default summary, and leaving Notes without one).

Adds a Podlove Episode test stub and regression tests for the summary and the
fallback.

Fixes #3455.

Podlove stores an episode's summary separately from post_content, so it was
never federated. Override the transformer's get_summary() to prefer the episode
summary (falling back to the default summary, and leaving Notes without one).

Adds a Podlove Episode test stub and regression tests for the summary and the
fallback.

Fixes #3455.
Copilot AI review requested due to automatic review settings June 24, 2026 14:09
@github-actions github-actions Bot added [Focus] Compatibility Ensuring the plugin plays well with other plugins [Tests] Includes Tests labels Jun 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the Podlove Podcast Publisher integration so that Podlove’s per-episode summary (stored outside post_content) is federated via the ActivityPub object summary, with regression tests and a minimal Podlove Episode test stub.

Changes:

  • Override the Podlove transformer’s get_summary() to prefer \Podlove\Model\Episode::$summary (with fallback to the default post summary).
  • Add PHPUnit integration tests covering the Podlove summary behavior and fallback behavior.
  • Add a minimal Podlove Episode model stub for tests and a changelog entry.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
integration/class-podlove-podcast-publisher.php Adds a get_summary() override to federate the Podlove episode summary.
tests/phpunit/tests/integration/class-test-podlove-podcast-publisher.php Adds setup/teardown to load/reset a Podlove Episode stub and adds summary regression tests.
tests/phpunit/includes/class-episode.php Introduces a minimal \Podlove\Model\Episode stub used by tests.
.github/changelog/add-podlove-episode-summary Documents the new Podlove episode summary federation behavior.

Comment thread tests/phpunit/includes/class-episode.php
Comment thread tests/phpunit/includes/class-episode.php
Comment thread tests/phpunit/includes/class-episode.php
Comment thread integration/class-podlove-podcast-publisher.php
Strip shortcodes, tags, and decode entities (as generate_post_summary does)
before federating, and fall back to the default summary when the sanitized
result is empty. Tests now cover entity/tag sanitization and a markup-only
summary falling back.
@pfefferle pfefferle requested a review from a team June 24, 2026 14:40
@pfefferle pfefferle self-assigned this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Focus] Compatibility Ensuring the plugin plays well with other plugins [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Podlove: include the episode summary in federated content

2 participants