mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 19:43:32 +00:00
de85cca894
* Allow content warning * build files * added missing namespace * fix tests * actors does not support sensitive (yet). * Update includes/functions.php * added `sanitize_callback` --------- Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
1 line
No EOL
702 B
JavaScript
1 line
No EOL
702 B
JavaScript
(()=>{"use strict";const t=window.React,e=window.wp.editor,n=window.wp.plugins,i=window.wp.components,o=window.wp.data,a=window.wp.coreData,r=window.wp.i18n;(0,n.registerPlugin)("activitypub-editor-plugin",{render:()=>{const n=(0,o.useSelect)((t=>t("core/editor").getCurrentPostType()),[]),[w,c]=(0,a.useEntityProp)("postType",n,"meta");return(0,t.createElement)(e.PluginDocumentSettingPanel,{name:"activitypub",title:(0,r.__)("Fediverse","activitypub")},(0,t.createElement)(i.TextControl,{label:(0,r.__)("Content Warning","activitypub"),value:w?.activitypub_content_warning,onChange:t=>{c({...w,activitypub_content_warning:t})},placeholder:(0,r.__)("Optional content warning","activitypub")}))}})})(); |