Jan on Nostr: As of v2.0.0 of ActivityPub for WordPress, you can add this here code snippet to your ...
As of v2.0.0 of ActivityPub for WordPress, you can add this here code snippet to your WordPress site to stop it from silently accepting comment updates:add_action( 'activitypub_handled_update', function( $activity, $second_param, $state, $reaction ) {if ( $reaction instanceof \WP_Comment ) {wp_set_comment_status( $reaction, 'hold' );}}, 99, 4 );
That is, it won’t stop the comment from being updated, but it’ll require reapproval before it gets shown on your blog.
(I still don’t know what the second argument does exactly.) 🤣
https://jan.boddez.net/notes/130b3fcf6cPublished at
2024-01-10 12:11:59Event JSON
{
"id": "8cfd7e4755af9fb08c68dbfdf6502f2d67b78fe30dde7e0507a13442d573a033",
"pubkey": "7c127648c612af4c54850958d08c61964fa05b9f1c6854ee155377a45989545c",
"created_at": 1704888719,
"kind": 1,
"tags": [
[
"t",
"activitypub"
],
[
"t",
"wordpress"
],
[
"proxy",
"https://jan.boddez.net/notes/130b3fcf6c",
"activitypub"
]
],
"content": "As of v2.0.0 of ActivityPub for WordPress, you can add this here code snippet to your WordPress site to stop it from silently accepting comment updates:add_action( 'activitypub_handled_update', function( $activity, $second_param, $state, $reaction ) {if ( $reaction instanceof \\WP_Comment ) {wp_set_comment_status( $reaction, 'hold' );}}, 99, 4 );\n\nThat is, it won’t stop the comment from being updated, but it’ll require reapproval before it gets shown on your blog.\n\n(I still don’t know what the second argument does exactly.) 🤣\n\nhttps://jan.boddez.net/notes/130b3fcf6c",
"sig": "8d6535c8d3a0198dd9f3ec6a68b317e965c7bf4bf8c1d6c41a96ff0ee905eaef2baa120b02703780da33aadffe248ec4a1d6105cd36de90495ad66af0ebef825"
}