Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.github
.gitignore
.php_cs
.prettierignore
.prettierrc.js
.svnignore
.travis.yml
.wordpress-org
Expand Down
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

#
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
#
# Be sure to keep this file in sync with the .prettierrc.js file.

root = true

Expand Down
5 changes: 5 additions & 0 deletions .github/changelog/1674-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: minor
Type: added

Post Preview now supports RTL languages.
Embed and wp-admin styles are optimized for RTL languages.
4 changes: 4 additions & 0 deletions .github/changelog/1900-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Set older unfederated posts to local visibility by default.
4 changes: 4 additions & 0 deletions .github/changelog/1907-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Minor performance improvement when querying posts of various types, by avoiding double queries.
4 changes: 4 additions & 0 deletions .github/changelog/1909-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

The following tables now more closely match the appearance of other WordPress tables and can be filtered by status.
4 changes: 4 additions & 0 deletions .github/changelog/1913-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Follower tables now look closer to what other tables in WordPress look like.
4 changes: 4 additions & 0 deletions .github/changelog/1916-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

The `following` endpoint now returns the actual list of users being followed.
4 changes: 4 additions & 0 deletions .github/changelog/1918-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed an issue where the number of followers shown didn’t always match the actual follower list.
4 changes: 4 additions & 0 deletions .github/changelog/1919-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Added initial support for Fediverse Starter Kits, allowing users to follow recommended accounts from a predefined list.
4 changes: 4 additions & 0 deletions .github/changelog/1920-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Ensure that the Actor-ID is always a URL.
4 changes: 4 additions & 0 deletions .github/changelog/1922-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

The featured tags endpoint is now available again for all profiles, showing the most frequently used tags by each user.
4 changes: 4 additions & 0 deletions .github/changelog/1925-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Followers and Following list tables now support Columns and Pagination screen options.
4 changes: 4 additions & 0 deletions .github/changelog/1928-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Removed follower dates to avoid confusion, as they may not have accurately reflected the actual follow time.
4 changes: 4 additions & 0 deletions .github/changelog/1930-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Added a first version of the Follow form, allowing users to follow other Actors by username or profile link.
4 changes: 4 additions & 0 deletions .github/changelog/1931-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed a bug in how follow requests were accepted to ensure they work correctly.
4 changes: 4 additions & 0 deletions .github/changelog/1932-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed missing avatar class so that CSS styles are correctly applied to ActivityPub avatars on the Dashboard.
4 changes: 4 additions & 0 deletions .github/changelog/1942-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Step counts for the Welcome checklist now only take into account steps that are added in the Welcome class.
4 changes: 4 additions & 0 deletions .github/changelog/1943-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Prevent WordPress from loading all admin notices twice on ActivityPub settings pages.
4 changes: 4 additions & 0 deletions .github/changelog/1946-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Table actions are now faster by using the Custom Post Type ID instead of the remote user URI, thanks to the unified Actor Model.
4 changes: 4 additions & 0 deletions .github/changelog/1959-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Ensure that all schedulers are registered during every plugin update.
4 changes: 4 additions & 0 deletions .github/changelog/1973-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed a PHP error that prevented the Follower overview from loading.
4 changes: 4 additions & 0 deletions .github/changelog/1974-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Improved Account-Aliases handling by internally normalizing input formats.
2 changes: 2 additions & 0 deletions .github/workflows/gardening.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ jobs:
{"path": "integration", "label": "[Focus] Compatibility"},
{"path": "includes/class-mailer.php", "label": "[Feature] Notifications"},
{"path": "includes/class-blocks.php", "label": "[Focus] Editor"},
{"path": "includes/class-cli.php", "label": "[Feature] CLI"},
{"path": "includes/collection", "label": "[Feature] Collections"},
{"path": "includes/rest", "label": "[Feature] REST API"},
{"path": "includes/signature", "label": "[Feature] Signature"},
{"path": "includes/wp-admin", "label": "[Feature] WP Admin"},
{"path": "includes/wp-admin/import", "label": "[Feature] Import"},
{"path": "includes/wp-admin/class-health-check.php", "label": "[Feature] Health Check"}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
include:
- wp-version: latest
- wp-version: '6.4'
- wp-version: '6.5'
php-versions: '7.2'
- wp-version: trunk
php-versions: '8.4'
Expand Down
15 changes: 7 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
/build/**/*.map
/coverage/
/node_modules/
/vendor/
package-lock.json
composer.lock
.DS_Store
.cursor
_site
.idea/
.cursor
.DS_Store
.php_cs.cache
.phpunit.result.cache
.sass-cache
.vscode/settings.json
.windsurf
.windsurfrules
.wp-env.override.json
composer.lock
package-lock.json
10 changes: 1 addition & 9 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
build
coverage
node_modules
tests
vendor

# Temporary ignores while breaking out each component.
assets
src/follow-me
src/followers
src/reactions
src/remote-reply
src/reply
src/reply-intent
12 changes: 0 additions & 12 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,12 @@ module.exports = {

printWidth: 120,
overrides: [
{
files: '*.json',
options: {
useTabs: false,
},
},
{
files: '*.yml',
options: {
useTabs: false,
tabWidth: 2,
},
},
{
files: '*.md',
options: {
trimTrailingWhitespace: false, // Not a valid Prettier option, handled by editorconfig only
},
},
],
};
82 changes: 41 additions & 41 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{
"landingPage": "/wp-admin/options-general.php?page=activitypub",
"steps": [
{
"step": "setSiteOptions",
"options": {
"permalink_structure": "/%postname%/"
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "activitypub"
},
"options": {
"activate": true
}
},
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "mkdir",
"path": "wordpress/wp-content/mu-plugins"
},
{
"step": "writeFile",
"path": "wordpress/wp-content/mu-plugins/show-admin-notice-2.php",
"data": "<?php\nadd_action(\n'admin_notices',\nfunction() {\n$dismissed = get_user_option( 'dismissed_expose_blueprint_notice-2', get_current_user_id() );\nif ( $dismissed ) {\nreturn;\n}\necho '<div class=\"notice notice-info is-dismissible\" id=\"custom-admin-notice-2\"><p>' . esc_html( 'Welcome and have fun 👋' ) . '</p></div>';\n}\n);\nadd_action('wp_ajax_dismiss_custom-admin-notice-2', function() {\ncheck_ajax_referer('custom-admin-notice-2', 'nonce');\n$user_id = get_current_user_id();\nif ( $user_id ) {\nupdate_user_option($user_id, 'dismissed_expose_blueprint_notice-2', 1, false);\nwp_send_json_success();\n} else {\nwp_send_json_error('User not found');\n}\n} );\nadd_action('admin_footer', function() {\n?>\n<script type=\"text/javascript\">\njQuery(document).ready( function($) {\nvar ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>';\nvar nonce = '<?php echo esc_html( wp_create_nonce( 'custom-admin-notice-2' ) ); ?>';\n$( '#custom-admin-notice-2' ).on( 'click', '.notice-dismiss', function() {\n$.ajax({\nurl: ajaxurl,\ntype: 'POST',\ndata: {\naction: 'dismiss_custom-admin-notice-2',\nnonce: nonce\n}\n});\n});\n});\n</script>\n<?php\n} );"
},
{
"step": "setSiteOptions",
"options": {
"blogname": "ActivityPub Demo",
"blogdescription": "Democratize Publishing in the Fediverse",
"activitypub_enable_blog_user": "1"
}
}
]
"landingPage": "/wp-admin/options-general.php?page=activitypub",
"steps": [
{
"step": "setSiteOptions",
"options": {
"permalink_structure": "/%postname%/"
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "activitypub"
},
"options": {
"activate": true
}
},
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "mkdir",
"path": "wordpress/wp-content/mu-plugins"
},
{
"step": "writeFile",
"path": "wordpress/wp-content/mu-plugins/show-admin-notice-2.php",
"data": "<?php\nadd_action(\n'admin_notices',\nfunction() {\n$dismissed = get_user_option( 'dismissed_expose_blueprint_notice-2', get_current_user_id() );\nif ( $dismissed ) {\nreturn;\n}\necho '<div class=\"notice notice-info is-dismissible\" id=\"custom-admin-notice-2\"><p>' . esc_html( 'Welcome and have fun 👋' ) . '</p></div>';\n}\n);\nadd_action('wp_ajax_dismiss_custom-admin-notice-2', function() {\ncheck_ajax_referer('custom-admin-notice-2', 'nonce');\n$user_id = get_current_user_id();\nif ( $user_id ) {\nupdate_user_option($user_id, 'dismissed_expose_blueprint_notice-2', 1, false);\nwp_send_json_success();\n} else {\nwp_send_json_error('User not found');\n}\n} );\nadd_action('admin_footer', function() {\n?>\n<script type=\"text/javascript\">\njQuery(document).ready( function($) {\nvar ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>';\nvar nonce = '<?php echo esc_html( wp_create_nonce( 'custom-admin-notice-2' ) ); ?>';\n$( '#custom-admin-notice-2' ).on( 'click', '.notice-dismiss', function() {\n$.ajax({\nurl: ajaxurl,\ntype: 'POST',\ndata: {\naction: 'dismiss_custom-admin-notice-2',\nnonce: nonce\n}\n});\n});\n});\n</script>\n<?php\n} );"
},
{
"step": "setSiteOptions",
"options": {
"blogname": "ActivityPub Demo",
"blogdescription": "Democratize Publishing in the Fediverse",
"activitypub_enable_blog_user": "1"
}
}
]
}
9 changes: 9 additions & 0 deletions .wordpress-org/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 17 additions & 17 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"core": null,
"plugins": [ "." ],
"env": {
"tests": {
"config": {
"WP_TESTS_DOMAIN": "example.org",
"WP_SITEURL": "http://example.org",
"WP_HOME": "http://example.org"
},
"port": 80,
"mappings": {
"wp-content/plugins/activitypub": ".",
"wp-content/plugins/activitypub/tests": "./tests",
"wp-content/plugins/activitypub/coverage": "./coverage"
}
}
}
"core": null,
"plugins": [ "." ],
"env": {
"tests": {
"config": {
"WP_TESTS_DOMAIN": "example.org",
"WP_SITEURL": "http://example.org",
"WP_HOME": "http://example.org"
},
"port": 80,
"mappings": {
"wp-content/plugins/activitypub": ".",
"wp-content/plugins/activitypub/tests": "./tests",
"wp-content/plugins/activitypub/coverage": "./coverage"
}
}
}
}
Loading