updated plugin ActivityPub
version 3.3.3
This commit is contained in:
12
wp-content/plugins/activitypub/build/reply-intent/block.json
Normal file
12
wp-content/plugins/activitypub/build/reply-intent/block.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "reply-handler",
|
||||
"title": "Reply Handler: not a block, but block.json is very useful.",
|
||||
"category": "widgets",
|
||||
"icon": "admin-comments",
|
||||
"keywords": [
|
||||
"reply",
|
||||
"handler",
|
||||
"comments"
|
||||
],
|
||||
"editorScript": "file:./plugin.js"
|
||||
}
|
@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-data', 'wp-element', 'wp-plugins'), 'version' => '488f0199fb69ddcf6c53');
|
@ -0,0 +1 @@
|
||||
(()=>{"use strict";const t=window.wp.plugins,e=window.wp.blocks,n=window.wp.data,i=window.wp.blockEditor,r=window.wp.element;(0,t.registerPlugin)("activitypub-reply-intent",{render:()=>{const[t,o]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(t)return;const r=new URLSearchParams(window.location.search).get("in_reply_to");r&&setTimeout((()=>{const t=(0,e.createBlock)("activitypub/reply",{url:r}),o=(0,n.dispatch)(i.store);o.insertBlock(t),o.insertAfterBlock(t.clientId)}),200),o(!0)}),[t]),null}})})();
|
Reference in New Issue
Block a user