Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a reaction block #1070

Merged
merged 56 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1ed32b5
Stub out likes block
mattwiebe Oct 10, 2024
62c6560
register block
mattwiebe Oct 22, 2024
32bc074
rename
mattwiebe Dec 10, 2024
e85b658
Working reactions 🎉
mattwiebe Dec 10, 2024
a6fb9f7
built files
mattwiebe Dec 10, 2024
7b661d5
no postId
mattwiebe Dec 11, 2024
1b8dca8
generate fake facepile in the editor
mattwiebe Dec 11, 2024
1c32c8e
nicer layout with dropdowns to show all reactions with names
mattwiebe Dec 12, 2024
cb0b2fa
built files
mattwiebe Dec 12, 2024
daa55bb
changelog
mattwiebe Dec 12, 2024
308538c
changelog ✌️
mattwiebe Dec 12, 2024
6202b41
constrain to a single line
mattwiebe Dec 12, 2024
fc46a4f
use integer type, prop @obenland
mattwiebe Dec 12, 2024
7984d2a
fit and finish
mattwiebe Dec 12, 2024
6fbe830
Use the 'after' block hook
mattwiebe Dec 12, 2024
1864525
Enable Likes and Reposts by default
mattwiebe Dec 12, 2024
fb55c1f
Use the comment registry for the reactions endpoint
mattwiebe Dec 12, 2024
8a95b61
Merge branch 'trunk' into add/like-and-boost-blocks
mattwiebe Dec 12, 2024
c881b4d
lint
mattwiebe Dec 12, 2024
e0a8821
changelog the reactions enabling
mattwiebe Dec 12, 2024
c375163
Consume the REST API response without hardcoding keys
mattwiebe Dec 12, 2024
1e8b785
phpcs appeasement
mattwiebe Dec 12, 2024
018d45d
use `number_format_i18n`
mattwiebe Dec 13, 2024
00271e3
animations! 🎢
mattwiebe Dec 13, 2024
e3bb438
proper calling of new post route
mattwiebe Dec 13, 2024
9f4ff3f
First pass at showing reactions in non-block themes
obenland Dec 13, 2024
1dd7ca6
Merge branch 'add/like-and-boost-blocks' of https://github.com/Automa…
obenland Dec 13, 2024
6fa6857
built reactions
mattwiebe Dec 13, 2024
4f5b4d9
Use correct callback name when checking init.
obenland Dec 13, 2024
83af43d
Merge branch 'add/like-and-boost-blocks' of https://github.com/Automa…
obenland Dec 13, 2024
9e7736a
only hook the_content in non-block theme context
mattwiebe Dec 13, 2024
52082f8
Merge remote-tracking branch 'origin/add/like-and-boost-blocks' into …
mattwiebe Dec 13, 2024
c4a87a2
Fix editor, fix script data, improve styling
mattwiebe Dec 13, 2024
a8488f4
Reactions disabling fit n finish
mattwiebe Dec 13, 2024
5f48511
fix tests
mattwiebe Dec 13, 2024
826dc6c
lint
mattwiebe Dec 13, 2024
8f60aeb
add reactions endpoint tests
mattwiebe Dec 14, 2024
808d195
Merge branch 'trunk' into add/like-and-boost-blocks
pfefferle Dec 16, 2024
2b5c696
Move reactions setting to Activitypub settings
obenland Dec 16, 2024
c5d6551
Rename settings class.
obenland Dec 16, 2024
4dbf9e6
Rename remaining class reference
obenland Dec 16, 2024
f58651b
move all settings hooks
pfefferle Dec 16, 2024
fb7197c
This refactor manager didn't do its job at all…
obenland Dec 16, 2024
c483ecb
Merge branch 'add/like-and-boost-blocks' of https://github.com/Automa…
obenland Dec 16, 2024
3129aea
Bring back meta box for Classic Editor users.
obenland Dec 16, 2024
568318f
always register block
mattwiebe Dec 16, 2024
aab821d
setting for non-block themes only
mattwiebe Dec 16, 2024
017b192
subtler animations
mattwiebe Dec 16, 2024
4c41d46
Remove `ACTIVITYPUB_DISABLE_REACTIONS` constant
mattwiebe Dec 16, 2024
d96c978
Merge branch 'trunk' into add/like-and-boost-blocks
mattwiebe Dec 16, 2024
a78dc8d
Merge branch 'trunk' into add/like-and-boost-blocks
obenland Dec 17, 2024
4d883bc
Use our own `notAllowed` icon
mattwiebe Dec 17, 2024
9ca60bb
Merge remote-tracking branch 'origin/add/like-and-boost-blocks' into …
mattwiebe Dec 17, 2024
7a1c67f
remove stray use
mattwiebe Dec 17, 2024
1f821ae
Remove settings and classic theme compat
obenland Dec 17, 2024
3e82ef5
remove reactions postmeta from editor plugin
mattwiebe Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Reactions block to display likes and reposts
* `icon` support for `Audio` and `Video` attachments
* Send "new follower" emails
* Send "direct message" emails
* Account for custom comment types when calculating comment counts

### Improved

* Likes and Reposts enabled by default
* Email templates for Likes and Reposts
* Improve Interactions moderation
* Compatibility with Akismet
Expand Down
2 changes: 2 additions & 0 deletions activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function rest_init() {
Rest\Server::init();
Rest\Collection::init();
Rest\Interaction::init();
Rest\Post::init();

// Load NodeInfo endpoints only if blog is public.
if ( is_blog_public() ) {
Expand All @@ -64,6 +65,7 @@ function plugin_init() {
\add_action( 'init', array( __NAMESPACE__ . '\Migration', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Activitypub', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Activity_Dispatcher', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Reactions_Settings', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Handler', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Admin', 'init' ) );
\add_action( 'init', array( __NAMESPACE__ . '\Hashtag', 'init' ) );
Expand Down
2 changes: 1 addition & 1 deletion build/editor-plugin/plugin.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '4d5e9ed82e8448bb4fd1');
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => 'df17f53a1f77c7270fc9');
2 changes: 1 addition & 1 deletion build/editor-plugin/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/follow-me/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '62610556ba8e5f129fdf');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9ba472502cdfebc07309');
Loading
Loading