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

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11459443365

Upstream-Ref: Automattic/jetpack@8ca1d4a
  • Loading branch information
gmjuhasz authored and matticbot committed Oct 22, 2024
1 parent 5e9651a commit 420fec2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.54.4-alpha] - unreleased
## [0.55.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

Expand All @@ -14,6 +14,7 @@ This is an alpha version! The changes listed here are not final.

### Fixed
- Fixed the site features for Simple sites
- Social: Fix Bsky profile URL

## [0.54.3] - 2024-10-14
### Changed
Expand Down Expand Up @@ -739,7 +740,7 @@ This is an alpha version! The changes listed here are not final.
- Updated package dependencies.
- Update package.json metadata.

[0.54.4-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.3...v0.54.4-alpha
[0.55.0-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.3...v0.55.0-alpha
[0.54.3]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.2...v0.54.3
[0.54.2]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.1...v0.54.2
[0.54.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.0...v0.54.1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"link-template": "https://github.com/Automattic/jetpack-publicize/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "0.54.x-dev"
"dev-trunk": "0.55.x-dev"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-publicize",
"version": "0.54.4-alpha",
"version": "0.55.0-alpha",
"description": "Publicize makes it easy to share your site’s posts on several social media networks automatically when you publish a new post.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/publicize/#readme",
"bugs": {
Expand Down
4 changes: 4 additions & 0 deletions 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 420fec2

Please sign in to comment.