Skip to content

Add a Friend on the Frontend#516

Merged
akirk merged 5 commits into
mainfrom
add-friend-frontend
May 21, 2026
Merged

Add a Friend on the Frontend#516
akirk merged 5 commits into
mainfrom
add-friend-frontend

Conversation

@akirk

@akirk akirk commented May 1, 2025

Copy link
Copy Markdown
Owner

Summary

  • Adds a frontend /friends/add-friend/ page and block template so subscriptions can be reviewed and created outside wp-admin.
  • Adds a review flow for single URLs, Mastodon-style handles, pasted URL lists, pasted OPML, and uploaded OPML files.
  • Lets users choose discovered feeds, edit display name/username, adjust parser and post format settings, preview feed items, add custom feed URLs, and follow selected entries in bulk.
  • Adds authenticated AJAX handlers for feed discovery, feed-item previews, and frontend subscription creation, then schedules the new subscription's first retrieval.
  • Adds Add Friend entry points and styles for the default, block, Google Reader, and Mastodon frontend themes.

Testing

  • composer check-cs
  • git diff --check main...HEAD
Changelog
  • Automatically create a changelog entry from the details below

Type

  • Added
  • Changed
  • Fixed
  • Removed

Message

Add a frontend Add Friend page with feed review and OPML import support.

@akirk akirk added the 4.0 label May 1, 2025
@akirk akirk mentioned this pull request May 1, 2025
@akirk akirk added this to the 4.0 milestone May 1, 2025
@akirk akirk force-pushed the remove-friendship-functionality branch from d00b3be to 3548729 Compare March 5, 2026 11:56
Base automatically changed from remove-friendship-functionality to main March 20, 2026 07:55
@akirk akirk added 4.1 and removed 4.0 labels Mar 20, 2026
@akirk akirk modified the milestones: 4.0, 4.1 Mar 20, 2026
akirk added a commit that referenced this pull request Mar 26, 2026
The Add Friend page was accidentally removed in #515 (Remove Friendship
functionality). The intent was to move it to the frontend (#516), but
until that lands, the admin page is needed. All links throughout the
plugin still point to admin.php?page=add-friend, causing an access
denied error.

Restores the page as subscription-only (no friendship request flow).
@akirk akirk force-pushed the add-friend-frontend branch from ad9df47 to bd7e910 Compare March 28, 2026 06:30
@github-actions

github-actions Bot commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Test this PR in WordPress Playground

You can test this pull request directly in WordPress Playground:

Launch WordPress Playground

This will install and activate the plugin with the changes from this PR.

@akirk akirk force-pushed the add-friend-frontend branch 2 times, most recently from 889ba9d to ab95a70 Compare March 28, 2026 12:22
@akirk akirk force-pushed the add-friend-frontend branch from b72592b to 1a70747 Compare May 7, 2026 09:27
akirk added 5 commits May 21, 2026 14:47
- New /friends/add-friend route with inline follow form
- AJAX feed discovery and subscription from the frontend
- Discover People section with links to Mastodon local timelines
- "Add a friend" link in the admin bar menu
- Properly subscribe to feeds with parser metadata (fixes ActivityPub)
- Retrieve posts immediately after following
- Move feed refresh from wp-admin to AJAX on the frontend
- Focus Follow button after discovery for quick Enter-to-subscribe
- Show avatar and linked success message after following
@akirk akirk force-pushed the add-friend-frontend branch from 1a70747 to b333fa0 Compare May 21, 2026 12:47
@akirk akirk marked this pull request as ready for review May 21, 2026 12:59
@akirk akirk merged commit 476ca6b into main May 21, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant