Release notes / BuddyPress Activity Link Preview
BuddyPress Add-on Plugin

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.

18 releases
v1.7.7 latest
November 19, 2026 shipped

v1.7.7 Latest

November 19, 2026
Fix 6 Security 2 Dev 1

Fix

  • Pasting a link into the posting form of the [activity-listing] shortcode now shows a preview. The plugin's scripts only loaded on BuddyPress activity screens, so pages using the shortcode never got one.
  • Link previews now work in the BuddyPress Post From Anywhere form, wherever the form is placed (shortcode, block or widget).
  • After posting from a form outside BuddyPress pages, such as Post From Anywhere, the link preview now clears instead of staying in the form.
  • Typing a link no longer shows a "Preview is not available" notice next to the finished preview. Each keystroke used to fetch the half-typed address.
  • Previews no longer depend on another plugin or theme defining the WordPress AJAX address on the page.
  • The link preview card shows on the BuddyBoss single activity page again.

Security

  • Activity text written as escaped HTML is no longer turned back into live markup in the activity stream.
  • Fetching a page for a preview now stops after 1 MB.

Dev

  • Added a release build script and a local CI script, and moved the zip exclusions into .distignore.

v1.7.6

November 3, 2026
New 1 Improve 2 Fix 11 Security 1 Dev 3

New

  • Links typed without http:// (for example en.wikipedia.org/wiki/Singapore_Airlines) now get a preview, opened over https.

Improve

  • Preview cards take their colours from Reign, BuddyX Pro and any block theme, not only BuddyX, in light and dark mode.
  • Preview close and image navigation controls now meet the 40px minimum touch target (32px for the control that overlays the thumbnail), up from 20x24 and 34x31.

Fix

  • Saved previews now keep the link description shown while composing. It was dropped on save for posts and comments unless the image was changed first.
  • Twitter/X and Facebook embeds stayed blank on activity permalinks and on themes that do not load the stream over AJAX. They were only ever initialised after an activity AJAX call, so a normal page view left an empty box.
  • Tweet embeds now follow the site's dark mode, including when a member switches between light and dark while the page is open.
  • Tweets no longer go blank after changing the activity filter; they render again without a page reload.
  • A deleted or private Twitter/X post no longer leaves an empty box in the activity stream.
  • Preview descriptions line up with the card edge on themes that pad every activity paragraph, such as BuddyX Pro on phones.
  • Preview description and image-count text now meet WCAG AA contrast (4.5:1) in light mode.
  • The preview image's previous and next buttons now sit directly under the thumbnail. On wide screens they were centred across the whole card, far from the image they change.
  • The preview close button now sits top right at every screen width. It previously appeared top left on desktop and top right on mobile.
  • The image remove button is legible over light images; it was white on a transparent background.
  • Removed the empty space that every saved preview carried below its description in the activity stream.

Security

  • Preview requests for single-label hosts (such as https://www/ or an intranet name) are refused.

Dev

  • Cleared all 11 PHPStan level 5 findings, including two undefined-method calls on DOM nodes returned by XPath.
  • Removed dead CSS rules and unused JavaScript variables left behind by earlier renames.
  • Raised the minimum PHP version to 8.1.

v1.7.5

July 29, 2026
Fix 1

Fix

  • Restored the correct plugin files. The 1.7.4 package published on WordPress.org contained the files of a different plugin.

v1.7.4

July 17, 2026
New 1 Improve 2 Fix 4 Security 2

New

  • Added German, Spanish, French, Italian and Portuguese (Brazil) translations.

Improve

  • Plugin assets and the Twitter/Facebook SDKs now load only in BuddyPress activity contexts (the activity directory, member activity and group screens) instead of every page. Use the bp_activity_link_preview_load_assets filter to load them on custom pages that embed an activity stream.
  • Pages with nothing to preview are remembered for 15 minutes so they are not re-fetched on every view, and comment rendering never fetches remote URLs, so slow pages no longer delay page loads. A momentary timeout or provider hiccup is no longer remembered, so a good link (a YouTube video, for example) is retried on the next view rather than showing no preview for the whole window. The window is filterable via bp_activity_link_preview_negative_cache_ttl.

Fix

  • The composer preview controls (Cancel Preview, previous/next image and the image counter) were built in JavaScript with no translatable source, so they always rendered in English. They are now translatable.
  • The plugin never registered its text domain, so bundled translations could never load.
  • Invalid or blocked URLs now show an error message in the composer instead of failing silently.
  • Preview close and image navigation icons render correctly when the admin toolbar is hidden.

Security

  • Scraped link titles and descriptions are sanitized before saving and escaped on output.
  • Hardened short-URL resolution to resolve redirects through the WordPress HTTP API and re-validate the redirect target against the SSRF private/loopback IP guard.

v1.7.3

March 12, 2026
Dev 5

Dev

  • Fixed all WordPress Coding Standards (WPCS) violations
  • Applied strict comparisons, Yoda conditions, and proper inline comment punctuation
  • Added ABSPATH direct access protection
  • Added missing PHPDoc parameter documentation for all functions
  • Fixed all Plugin Check errors (0 errors)

v1.7.2

January 22, 2026
New 2 Improve 1 Fix 4

New

  • Helper function to detect social media URLs for native embed handling
  • Same-site URL filtering to prevent internal profile links from generating previews

Improve

  • Better null checking for image navigation in JavaScript

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

Improve 1 Fix 2

Improve

  • Better error handling for missing dependencies

Fix

  • Plugin now auto-deactivates when BuddyPress or BuddyBoss Platform is not active
  • Added proper dependency check on admin_init hook

v1.7.0

December 22, 2025
New 1 Improve 2 Fix 10

New

  • Plugin version constant for proper asset cache busting

Improve

  • Tested up to WordPress 7.0
  • 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

May 22, 2025
Security 1

Security

  • Patched SSRF (Server Side Request Forgery) vulnerability in the URL parser.

v1.6.0

May 4, 2025
New 1 Improve 1 Fix 6 Security 2

New

  • Filter and event hooks to extend the activity preview functionality.

Improve

  • String labels and content clarity across the plugin.

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

December 30, 2024
New 1 Improve 3 Fix 5

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

August 22, 2024
Fix 2

Fix

  • Issue with Reddit
  • Issue with YouTube link preview

v1.4.2

January 3, 2024
Fix 1

Fix

  • Twitter/Instagram/Facebook preview issue

v1.4.0

April 20, 2022
Fix 2

Fix

  • Added spacing between link preview container and post button
  • Unable to comment and reply issue

v1.3.0

April 13, 2022
Fix 2

Fix

  • Added activity link data in REST API activity endpoint
  • PHPCS Fixes

v1.2.0

October 25, 2021
Fix 3

Fix

  • Plugin activated when BuddyPress is not activated
  • Update spacing between text and buttons
  • YouTube link issue

v1.1.0

April 21, 2021
Fix 3

Fix

  • Legacy Support
  • Preview generation on pasting URLs
  • Error message when meta values are not readable

v1.0.0

March 17, 2021
Note 1

Note

  • Initial release