Skip to content

Commit d78b138

Browse files
gmjuhaszmatticbot
authored andcommitted
Social: Change publicize endpoint to handle async (#39227)
* Add the option to republicize async way * changelog * Add JP changes * changelog * Update phrasing * Update param retreval Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10719786126 Upstream-Ref: Automattic/jetpack@7311c9a
1 parent 2f6e964 commit d78b138

11 files changed

+95
-92
lines changed

build/editor.asset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '85cd23afc78865d3964e');
1+
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '4bb863d5cb5f56a69435');

build/editor.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"automattic/jetpack-autoloader": "^3.0.10",
1010
"automattic/jetpack-composer-plugin": "^2.0.3",
1111
"automattic/jetpack-config": "^2.0.4",
12-
"automattic/jetpack-publicize": "^0.51.1-alpha",
12+
"automattic/jetpack-publicize": "^0.52.0-alpha",
1313
"automattic/jetpack-connection": "^3.0.0-alpha",
1414
"automattic/jetpack-my-jetpack": "^4.35.0-alpha",
1515
"automattic/jetpack-sync": "^3.9.1-alpha",

jetpack_vendor/automattic/jetpack-publicize/CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.51.1-alpha] - unreleased
8+
## [0.52.0-alpha] - unreleased
99

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

1212
### Changed
13+
- Made resharing async
1314
- Updated package dependencies.
1415

1516
## [0.51.0] - 2024-09-02
@@ -684,7 +685,7 @@ This is an alpha version! The changes listed here are not final.
684685
- Updated package dependencies.
685686
- Update package.json metadata.
686687

687-
[0.51.1-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.51.0...v0.51.1-alpha
688+
[0.52.0-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.51.0...v0.52.0-alpha
688689
[0.51.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.50.1...v0.51.0
689690
[0.50.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.50.0...v0.50.1
690691
[0.50.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.49.2...v0.50.0

jetpack_vendor/automattic/jetpack-publicize/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"link-template": "https://github.com/Automattic/jetpack-publicize/compare/v${old}...v${new}"
6060
},
6161
"branch-alias": {
62-
"dev-trunk": "0.51.x-dev"
62+
"dev-trunk": "0.52.x-dev"
6363
}
6464
},
6565
"config": {

jetpack_vendor/automattic/jetpack-publicize/src/class-rest-controller.php

+2
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ public function share_post( $request ) {
454454
$post_id = $request->get_param( 'postId' );
455455
$message = trim( $request->get_param( 'message' ) );
456456
$skip_connection_ids = $request->get_param( 'skipped_connections' );
457+
$async = (bool) $request->get_param( 'async' );
457458

458459
/*
459460
* Publicize endpoint on WPCOM:
@@ -477,6 +478,7 @@ public function share_post( $request ) {
477478
array(
478479
'message' => $message,
479480
'skipped_connections' => $skip_connection_ids,
481+
'async' => $async,
480482
)
481483
);
482484

jetpack_vendor/i18n-map.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
),
7171
'jetpack-publicize-pkg' => array(
7272
'path' => 'jetpack_vendor/automattic/jetpack-publicize',
73-
'ver' => '0.51.1-alpha1725370896',
73+
'ver' => '0.52.0-alpha1725537101',
7474
),
7575
'jetpack-sync' => array(
7676
'path' => 'jetpack_vendor/automattic/jetpack-sync',

vendor/composer/installed.json

+31-31
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dist": {
88
"type": "path",
99
"url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats",
10-
"reference": "a4695a2029f8e0600a3cf5c44f05e1c1b303c1e6"
10+
"reference": "3a0450395451578d2e2467d4ef16d03b863c2009"
1111
},
1212
"require": {
1313
"php": ">=7.0"
@@ -60,7 +60,7 @@
6060
"dist": {
6161
"type": "path",
6262
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
63-
"reference": "484009677c5abf8367d03ca2989dfe6cffa188eb"
63+
"reference": "16fc44854b3c24e811668442b63abee6ada752a9"
6464
},
6565
"require": {
6666
"php": ">=7.0"
@@ -125,7 +125,7 @@
125125
"dist": {
126126
"type": "path",
127127
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
128-
"reference": "f79d2d3468de9138f72b92d43d3418aba4ca0ba4"
128+
"reference": "b42076866436715b81b5e07bb95ae3c3e205d9b6"
129129
},
130130
"require": {
131131
"automattic/jetpack-constants": "^2.0.4",
@@ -194,7 +194,7 @@
194194
"dist": {
195195
"type": "path",
196196
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
197-
"reference": "fe3ef7ff4723a10603ea45e6cb91e525363eb0e1"
197+
"reference": "c1b8aa53556fb6af6ebd7ebc65827d6965c5ded5"
198198
},
199199
"require": {
200200
"composer-plugin-api": "^1.1 || ^2.0",
@@ -261,7 +261,7 @@
261261
"dist": {
262262
"type": "path",
263263
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-core",
264-
"reference": "fa93275cebfb2e79475e02c3fd8d7f5ed24e7e69"
264+
"reference": "c975417a994c743d8d6d781aad5693490db61e99"
265265
},
266266
"require": {
267267
"automattic/jetpack-connection": "^3.0.0-alpha",
@@ -329,7 +329,7 @@
329329
"dist": {
330330
"type": "path",
331331
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
332-
"reference": "0c54317a961318fde9f04a8b783e98e4e1004174"
332+
"reference": "4290d47a82305101669cf99f7ee1dc348d38636c"
333333
},
334334
"require": {
335335
"automattic/jetpack-boost-core": "^0.2.9",
@@ -405,7 +405,7 @@
405405
"dist": {
406406
"type": "path",
407407
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
408-
"reference": "4ad6de3a4d3e9e2b330bb2176833662f1c4ea351"
408+
"reference": "2243a4b69cff0f7fd6a5973d08e878ba9895e46e"
409409
},
410410
"require": {
411411
"composer-plugin-api": "^2.1.0",
@@ -465,7 +465,7 @@
465465
"dist": {
466466
"type": "path",
467467
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
468-
"reference": "cb451432fe4874db9be56c7efb9865ddccaebcdf"
468+
"reference": "c26f8d3da278f01e422d73913f994d68283c55f7"
469469
},
470470
"require": {
471471
"php": ">=7.0"
@@ -540,7 +540,7 @@
540540
"dist": {
541541
"type": "path",
542542
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
543-
"reference": "a3e64804ab4617f1647e1c0eaca25a999e252587"
543+
"reference": "2abfd73e8431ab0dabe614e84dc312acc3f82e7b"
544544
},
545545
"require": {
546546
"automattic/jetpack-a8c-mc-stats": "^2.0.2",
@@ -630,7 +630,7 @@
630630
"dist": {
631631
"type": "path",
632632
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
633-
"reference": "e5d29cc0d40ec7fa2ddd5929d337729aff87ed38"
633+
"reference": "aa4eaca4d5f691b3988cebdc60abc362eee382f1"
634634
},
635635
"require": {
636636
"php": ">=7.0"
@@ -684,7 +684,7 @@
684684
"dist": {
685685
"type": "path",
686686
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
687-
"reference": "3fad7dbf3f6d23aea33df780ebc16e111497c33c"
687+
"reference": "dc788ebc75bda6e136bb9869c55c9882bffa8e8a"
688688
},
689689
"require": {
690690
"php": ">=7.0"
@@ -737,7 +737,7 @@
737737
"dist": {
738738
"type": "path",
739739
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
740-
"reference": "d32e06856e8682b896f60fede2d25ed808795c8a"
740+
"reference": "cc45ac335ea4ab5b52e122d23f8c730011f6b6d9"
741741
},
742742
"require": {
743743
"automattic/jetpack-connection": "^3.0.0-alpha",
@@ -812,7 +812,7 @@
812812
"dist": {
813813
"type": "path",
814814
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
815-
"reference": "234f7a8b4feab5688fd03a1471771dcc84d6e5e5"
815+
"reference": "93606f54bd86a6cc64a5952b2cd07c15d187da04"
816816
},
817817
"require": {
818818
"php": ">=7.0"
@@ -870,7 +870,7 @@
870870
"dist": {
871871
"type": "path",
872872
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
873-
"reference": "e902657d43d2d9dbe6aef5ffe97ee8d2e0e87ff6"
873+
"reference": "58d8f2c7fb64ba04511bb7dd2a2c0d3af3604277"
874874
},
875875
"require": {
876876
"automattic/jetpack-a8c-mc-stats": "^2.0.2",
@@ -945,7 +945,7 @@
945945
"dist": {
946946
"type": "path",
947947
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
948-
"reference": "542c5dfa6926b784dc592b7300e5c6961e290270"
948+
"reference": "7a5548a24854a3f2eae76feb84d96dd0a75cc444"
949949
},
950950
"require": {
951951
"automattic/jetpack-connection": "^3.0.0-alpha",
@@ -1007,7 +1007,7 @@
10071007
"dist": {
10081008
"type": "path",
10091009
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
1010-
"reference": "80af9b22e64c4d91d38ee693ca45e50a5b1bc899"
1010+
"reference": "8d350774640536aaa1539bea2f8a44db0467e462"
10111011
},
10121012
"require": {
10131013
"php": ">=7.0"
@@ -1060,7 +1060,7 @@
10601060
"dist": {
10611061
"type": "path",
10621062
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
1063-
"reference": "8758adef0c7cdb47a0b5f03784e7be320b40523c"
1063+
"reference": "5c73f8d60336a1f5d5882e09d0f3e35acd34348e"
10641064
},
10651065
"require": {
10661066
"automattic/jetpack-admin-ui": "^0.4.5-alpha",
@@ -1162,7 +1162,7 @@
11621162
"dist": {
11631163
"type": "path",
11641164
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
1165-
"reference": "afe44c53cebd9d8b0cf8730b579189bf4cb94108"
1165+
"reference": "9af531799b600c9c0ab79111b3ed42d6244b7252"
11661166
},
11671167
"require": {
11681168
"php": ">=7.0"
@@ -1223,7 +1223,7 @@
12231223
"dist": {
12241224
"type": "path",
12251225
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
1226-
"reference": "82a9b7cfdb2b5d0290e87e9d96af06f67e6b9057"
1226+
"reference": "b466cb72320cf7bd7de1c0574568aa3640a30b4a"
12271227
},
12281228
"require": {
12291229
"automattic/jetpack-connection": "^3.0.0-alpha",
@@ -1291,7 +1291,7 @@
12911291
"dist": {
12921292
"type": "path",
12931293
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
1294-
"reference": "58f8bf2c25d73967cc3e8a80bb6752eff00c8fd5"
1294+
"reference": "39f5a36fbc99163adb09158eda34fd6207a760f0"
12951295
},
12961296
"require": {
12971297
"automattic/jetpack-a8c-mc-stats": "^2.0.2",
@@ -1347,7 +1347,7 @@
13471347
"dist": {
13481348
"type": "path",
13491349
"url": "/tmp/jetpack-build/Automattic/jetpack-post-list",
1350-
"reference": "d87f1bfc52b99874aa3f28a74136500e87f64fbd"
1350+
"reference": "04e1c950e0dccd3bab6897283220163867b9fd86"
13511351
},
13521352
"require": {
13531353
"automattic/jetpack-assets": "^2.3.6-alpha",
@@ -1412,7 +1412,7 @@
14121412
"dist": {
14131413
"type": "path",
14141414
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
1415-
"reference": "8f531cba0758a60c9a40a91bfe71188150c2efbc"
1415+
"reference": "3afde95112db5b47088469bbb5c6ce8ee1e05842"
14161416
},
14171417
"require": {
14181418
"php": ">=7.0"
@@ -1482,7 +1482,7 @@
14821482
"dist": {
14831483
"type": "path",
14841484
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
1485-
"reference": "0973d60149e32037e5131115584928330d369275"
1485+
"reference": "6c011e0a9a9225958b3eef288bedd5002e79dab0"
14861486
},
14871487
"require": {
14881488
"automattic/jetpack-connection": "^3.0.0-alpha",
@@ -1552,12 +1552,12 @@
15521552
},
15531553
{
15541554
"name": "automattic/jetpack-publicize",
1555-
"version": "0.51.1-alpha.1725370896",
1556-
"version_normalized": "0.51.1.0-alpha1725370896",
1555+
"version": "0.52.0-alpha.1725537101",
1556+
"version_normalized": "0.52.0.0-alpha1725537101",
15571557
"dist": {
15581558
"type": "path",
15591559
"url": "/tmp/jetpack-build/Automattic/jetpack-publicize",
1560-
"reference": "cd20e123bd87779b43f0dadbf406dab50043d520"
1560+
"reference": "d1968a907803b0d65a4d37079bde5b2b833cb099"
15611561
},
15621562
"require": {
15631563
"automattic/jetpack-assets": "^2.3.6-alpha",
@@ -1585,7 +1585,7 @@
15851585
"link-template": "https://github.com/Automattic/jetpack-publicize/compare/v${old}...v${new}"
15861586
},
15871587
"branch-alias": {
1588-
"dev-trunk": "0.51.x-dev"
1588+
"dev-trunk": "0.52.x-dev"
15891589
}
15901590
},
15911591
"installation-source": "dist",
@@ -1638,7 +1638,7 @@
16381638
"dist": {
16391639
"type": "path",
16401640
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
1641-
"reference": "92cd0b49006c8b3532e1b36f92cded8db535dccd"
1641+
"reference": "9cbf05367c1f414459814880e4cabd3fa97ebc1b"
16421642
},
16431643
"require": {
16441644
"automattic/jetpack-status": "^3.3.4",
@@ -1693,7 +1693,7 @@
16931693
"dist": {
16941694
"type": "path",
16951695
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
1696-
"reference": "a9557c859d469840e46f15aaab4d3054d2270903"
1696+
"reference": "ee3471e34a1578c5049734aaf7ad5b56bb1b0ef6"
16971697
},
16981698
"require": {
16991699
"php": ">=7.0"
@@ -1747,7 +1747,7 @@
17471747
"dist": {
17481748
"type": "path",
17491749
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
1750-
"reference": "cbeb6c9beb0e627f1a848e3a5490c3a21cbe7025"
1750+
"reference": "18e8af94ffe00174f39015d69e6d89ee808015b8"
17511751
},
17521752
"require": {
17531753
"automattic/jetpack-constants": "^2.0.4",
@@ -1811,7 +1811,7 @@
18111811
"dist": {
18121812
"type": "path",
18131813
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
1814-
"reference": "ceb4011320f0d9175513a3e2fb5048a7e0bad5f3"
1814+
"reference": "feee21d382fb2d13f75c5bb4c4084d7d954ce513"
18151815
},
18161816
"require": {
18171817
"automattic/jetpack-connection": "^3.0.0-alpha",

0 commit comments

Comments
 (0)