Skip to content

Commit

Permalink
Social: Fix Bluesky profile URL (#39849)
Browse files Browse the repository at this point in the history
* Add the Bluesky profile URL to the connection management

* changelog
  • Loading branch information
gmjuhasz authored Oct 22, 2024
1 parent f401cfb commit 8ca1d4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fixed

Social: Fix Bsky profile URL
4 changes: 4 additions & 0 deletions projects/packages/publicize/src/class-publicize-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ public function get_profile_link( $service_name, $connection ) {
return 'https://twitter.com/' . substr( $cmeta['external_display'], 1 ); // Has a leading '@'.
}

if ( 'bluesky' === $service_name ) {
return 'https://bsky.app/profile/' . $cmeta['external_id'];
}

if ( 'linkedin' === $service_name ) {
if ( ! isset( $cmeta['connection_data']['meta']['profile_url'] ) ) {
return false;
Expand Down

0 comments on commit 8ca1d4a

Please sign in to comment.