Skip to content

Commit 7aea1e8

Browse files
mattwiebepfefferle
andauthored
Add "Follow Me" block (#395)
The Follow Me block helps site visitors to follow you in the fediverse --------- Co-authored-by: Matthias Pfefferle <[email protected]>
1 parent 9a5cf66 commit 7aea1e8

26 files changed

+535
-54
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,18 @@ Project maintained on GitHub at [automattic/wordpress-activitypub](https://githu
108108
### 1.0.0 ###
109109

110110
* Add: blog-wide Account (catchall, like `[email protected]`)
111-
* Add: Signature Verification: https://docs.joinmastodon.org/spec/security/ .
112-
* Add: a Followers Block.
111+
* Add: a Follow Me block (help visitors to follow your Profile)
112+
* Add: Signature Verification: https://docs.joinmastodon.org/spec/security/
113+
* Add: a Followers Block (show off your Followers)
113114
* Add: Simple caching
114115
* Add: Collection endpoints for Featured Tags and Featured Posts
115-
* Update: Complete rewrite of the Follower-System based on Custom Post Types.
116+
* Update: Complete rewrite of the Follower-System based on Custom Post Types
116117
* Update: Improved linter (PHPCS)
117-
* Compatibility: Add a new conditional, `\Activitypub\is_activitypub_request()`, to allow third-party plugins to detect ActivityPub requests.
118-
* Compatibility: Add hooks to allow modifying images returned in ActivityPub requests.
119-
* Compatibility: Indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.3.
120-
* Compatibility: Avoid PHP notice on sites using PHP 8.2.
121-
* Fixed: Load the plugin later in the WordPress code lifecycle to avoid errors in some requests.
118+
* Compatibility: Add a new conditional, `\Activitypub\is_activitypub_request()`, to allow third-party plugins to detect ActivityPub requests
119+
* Compatibility: Add hooks to allow modifying images returned in ActivityPub requests
120+
* Compatibility: Indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.3
121+
* Compatibility: Avoid PHP notice on sites using PHP 8.2
122+
* Fixed: Load the plugin later in the WordPress code lifecycle to avoid errors in some requests
122123
* Fixed: Updating posts
123124
* Fixed: Hashtag now support CamelCase and UTF-8
124125

build/follow-me/block.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"name": "activitypub/follow-me",
4+
"apiVersion": 3,
5+
"version": "1.0.0",
6+
"title": "Follow me on the Fediverse",
7+
"category": "widgets",
8+
"description": "Display your Fediverse profile so that visitors can follow you.",
9+
"textdomain": "activitypub",
10+
"icon": "groups",
11+
"supports": {
12+
"html": false,
13+
"color": {
14+
"gradients": true,
15+
"link": true,
16+
"__experimentalDefaultControls": {
17+
"background": true,
18+
"text": true,
19+
"link": true
20+
}
21+
},
22+
"__experimentalBorder": {
23+
"radius": true,
24+
"width": true,
25+
"color": true,
26+
"style": true
27+
}
28+
},
29+
"attributes": {
30+
"selectedUser": {
31+
"type": "string",
32+
"default": "site"
33+
}
34+
},
35+
"editorScript": "file:./index.js",
36+
"viewScript": "file:./view.js",
37+
"style": [
38+
"file:./style-index.css",
39+
"wp-components"
40+
]
41+
}

build/follow-me/index.asset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9d4af3528585afd49437');

build/follow-me/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/follow-me/style-index.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/follow-me/view.asset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '06a922cf2e58c94b6431');

0 commit comments

Comments
 (0)