Skip to content

Commit

Permalink
Social: Remove unnecessary social connection feature checks (#38216)
Browse files Browse the repository at this point in the history
* Social: Remove social connection feature checks

* Add changelog

* Remove unnecessary instagram notice

* Fix up versions

* Clean up

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

Upstream-Ref: Automattic/jetpack@108e974
  • Loading branch information
manzoorwanijk authored and matticbot committed Jul 10, 2024
1 parent 1eaebd3 commit ad130fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.47.3-alpha] - unreleased

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

### Changed
- Social: Removed unnecessary feature checks for social connections

## [0.47.2] - 2024-07-08
### Fixed
- Social | Fixed the permissions for update and disconnection connections endpoints [#38187]
Expand Down Expand Up @@ -618,6 +625,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated package dependencies.
- Update package.json metadata.

[0.47.3-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.47.2...v0.47.3-alpha
[0.47.2]: https://github.com/Automattic/jetpack-publicize/compare/v0.47.1...v0.47.2
[0.47.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.47.0...v0.47.1
[0.47.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.46.3...v0.47.0
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.47.2",
"version": "0.47.3-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
12 changes: 0 additions & 12 deletions src/class-publicize-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -2040,18 +2040,6 @@ public function has_connections_management_feature() {
public function get_supported_additional_connections() {
$additional_connections = array();

if ( $this->has_connection_feature( 'instagram' ) ) {
$additional_connections[] = 'instagram-business';
}

if ( $this->has_connection_feature( 'mastodon' ) ) {
$additional_connections[] = 'mastodon';
}

if ( $this->has_connection_feature( 'nextdoor' ) ) {
$additional_connections[] = 'nextdoor';
}

if ( $this->has_connection_feature( 'threads' ) ) {
$additional_connections[] = 'threads';
}
Expand Down
1 change: 0 additions & 1 deletion src/jetpack-social-settings/class-dismissed-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public function register() {
'type' => 'object',
'properties' => array(
'auto-conversion-editor-notice' => array( 'type' => 'number' ),
'instagram' => array( 'type' => 'number' ),
'advanced-upgrade-nudge-admin' => array( 'type' => 'number' ),
'advanced-upgrade-nudge-editor' => array( 'type' => 'number' ),
),
Expand Down

0 comments on commit ad130fb

Please sign in to comment.