BuddyPress Activity Link Preview
When members paste a URL into the BuddyPress activity box, it posts as plain text and the conversation loses context. BuddyPress Activity Link Preview automatically fetches the linked page and displays a rich preview card with image, title, and description directly in the activity stream, the same behavior members expect from every other social platform.
v1.7.2
New
- Helper function to detect social media URLs for native embed handling
- Same-site URL filtering to prevent internal profile links from generating previews
Fix
- Twitter/X and Facebook link previews now work in activity comments
- @mentions no longer generate unwanted link previews
- Hash symbol (#) no longer added to browser URL when closing previews
- "Image X of undefined" no longer shows when images can't be determined
v1.7.1
Fix
- Plugin now auto-deactivates when BuddyPress or BuddyBoss Platform is not active
- Added proper dependency check on admin_init hook
v1.7.0
New
- Plugin version constant for proper asset cache busting
Improve
- Tested up to WordPress 6.9
- Requires PHP 7.4 minimum
Fix
- Scripts now load in footer for better performance
- Proper input sanitization with wp_unslash() for POST data
- Use wp_parse_url() instead of parse_url() for better compatibility
- Added translators comments for internationalization
- Plugin Check compatibility improvements
- Nonce verification now mandatory for security (CSRF protection)
- BuddyPress/BuddyBoss compatibility - function_exists checks added
- PHP 8.2+ compatibility - removed deprecated HTML-ENTITIES encoding
- BuddyPress class name detection improved
- Comment filter registration timing for proper enable/disable support
v1.6.1
Security
- Patched SSRF (Server Side Request Forgery) vulnerability in the URL parser.
v1.6.0
New
- Filter and event hooks to extend the activity preview functionality.
Fix
- Twitter card preview duplication issue in multiple activities.
- Twitter preview incorrectly appended to the second activity.
- Activity content not displaying when preview is enabled.
- Iframe not rendering correctly in activity previews.
- Preview not visible when sharing X (formerly Twitter) links.
- Activity link preview index logic for accurate rendering.
Security
- Patched SSRF (Server Side Request Forgery) vulnerability in the URL parser.
- Fixed XSS issues in link preview rendering to improve safety.
v1.4.4
New
- Included activity link preview data in the REST API activity endpoint.
Improve
- Improved code quality for better readability and maintainability.
- Added support for Twitter, YouTube, and LinkedIn link previews.
- Enhanced compatibility with Reddit link previews.
Fix
- Hide raw Facebook and Twitter URLs in BuddyPress activity content.
- Addressed multiple issues with Facebook embed functionality.
- Resolved issues with console errors during content injection.
- Resolved a YouTube link preview issue.
- Addressed issues where comments and replies could not be added to activities.
v1.4.3
Fix
- Issue with Reddit
- Issue with YouTube link preview
v1.4.2
Fix
- Twitter/Instagram/Facebook preview issue
v1.4.0
Fix
- Added spacing between link preview container and post button
- Unable to comment and reply issue
v1.3.0
Fix
- Added activity link data in REST API activity endpoint
- PHPCS Fixes
v1.2.0
Fix
- Plugin activated when BuddyPress is not activated
- Update spacing between text and buttons
- YouTube link issue
v1.1.0
Fix
- Legacy Support
- Preview generation on pasting URLs
- Error message when meta values are not readable
v1.0.0
Note
- Initial release