# activitypub/3.2.5/build/reply-intent/plugin.js

ActivityPub, version 3.2.5. 1 lines.

- Page: https://pluginprobe.com/plugins/activitypub/3.2.5/code/build/reply-intent/plugin.js
- Raw: https://pluginprobe.com/plugins/activitypub/3.2.5/raw/build/reply-intent/plugin.js
- Modified: 2024-07-29T11:10:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/activitypub/3.2.5/code/build/reply-intent/plugin.js#L10-L20`.

```javascript
(()=>{"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}})})();
```
