* Support webfinger requests for the live account. Closes https://github.com/owncast/owncast/issues/1193 * Support for actor requests. Returns response for live actor. Closes https://github.com/owncast/owncast/issues/1203 * Handle follow and unfollow requests. Closes https://github.com/owncast/owncast/issues/1191 and https://github.com/owncast/owncast/issues/1205 and https://github.com/owncast/owncast/issues/1206 and https://github.com/owncast/owncast/issues/1194 * Add basic support for sending out text activities. For https://github.com/owncast/owncast/issues/1192 * Some error handling and passing of dynamic local account names. * Add hardcoded example image attachment to test post * Centralize the map of accounts and inboxes * No longer disable the preview generator based on YP toggle * Send a federated message to followers when stream starts. For https://github.com/owncast/owncast/issues/1192 * Placeholder for attaching tags * Add image description * Save and get to outbox persistence. Return using outbox endpoint for actor * Pass payloads to be handled through the gochan * Handle undo follow requests explitly, not all undo requests * Add API for manually sending simple federated messages. Closes #1215 * Verify inbox requests. Closes #1321 * Add route to fetch a single AP object by ID. For #1329 * Add responses to fediverse nodeinfo requests * Set and get federation config values for admin * Handle host-meta requests * Do not send out message if disabled. Use saved go live message. * Require AP-compatible content types for AP-related requests * Rename ap models to apmodels for clarity * Change how content type matching takes place. * io -> ioutil * Add stub delete activity callback * Handle likes and announces to surface engagement in chat. Part of #1229 * Append url to go live posts * Do not require specific content types for nodeinfo requests * Add follow engagement chat message via AP * add owncast user-agent to requests * Set note visibility to public (for now) * Fix saving/fetching a single object * Add support for x-nodeinfo2 responses * Point to the dev admin branch for ap * Bundle in dev admin for testing * Add error logging * Add AP middleware back * Point to the new external compatible logo endpoint * Clean up more AP logging to help testing * Tweak go live text and link hashtags * Fix bug in fetching init time * Send update actor activities when server details/profile is updated * Add federation config overview to web client config * Add additional actor properties * Make the AP middleware checking more flexible when looking at types * First pass at remote fediverse follow flow. For #1371 * Added a basic AP actor followers endpoint * WIP client followers API * Add profile-page reference to webfinger response * Add aliases to webfinger response * Fix content-type returned to be expected activitypub+json * First pass at followers api * Point at local dev copy of go-fed/activity * Add custom toot Hashtag objects to posts * Store additional user details to followers table * Fix AP followers endpoint. Closes #1204 * Add owncast hashtag as an invisible tag to go live posts * Reject AP requests when it is disabled * Add actor util for generating full account user from person object * Verify inbox requests before performing any other work * Accept actor update requests * Fix linter errors in federation branch * Migrate AP SQL to sqlc for type safe queries * Use the @unclearParadigm REST parameter helper * Fix verifying post ID on AP engagement * WIP privacy/request approval * Style the remote follow modal * First pass at a followers list component w/ mock data. #1370 * Revert "Use the @unclearParadigm REST parameter helper" This reverts commit c8af8a413f6f53e7d1a15a7d823ff28be2db3c23. * Fix get followers API * Add support for requiring approval. Closes https://github.com/owncast/owncast/issues/1208 * Handle Applications as Actors partly for PeerTube support * add temp todo list * check route on load, this might change later * style followers * account for just 1 tab case * Remove mock data. Allow showing follow button even when there are no external actions defined * Point to actual followers API * Support fallback img for follower views * Remove duplicate verification. Add some additional verbose logging * Bundle dev admin * Add type to host-meta webfinger template response * Tweak remote follow modal content * WIP federation followers refactor * Do not send pointer to middleware * Update admin * Add setting for toggling displaying fediverse engagement. Closes #1404 * Add in-development admin * Do not enable cors on admin followers api * Add db migration for updating messages table * Enable empty string go live messages to disable * Remove debug messages * Rework some ActivityPub handling. Create new Actor->Person handling. Create new Actor->Service handling. Add engagement handlers to send chat events and store event objects. Store inbound activities to new ap_inbound_activities table. * Support federated engagement events. Store them in the messages table and surface them via chat events. * Support federated event engatement in the chat * Tweak web UI followers handling * Point go.mod at remote fork instead of local * Update admin * Merged in develop. Couple fixes * Update dev admin * Update fedi engagement posts. - Fix incorrect action text. - Add action icons. * Set public as to instead of cc for ap msg * Updated styling for federated actions in chat * Add support for blocking federated domains. Closes #1209 * Force checking of https in verify step * Update dev admin * Return user scopes in chat history api. Closes #1586 * Update dev admin * Add AP outbound request worker pool. Closes #1571 * Disable (temporarily?) owncast tag on AP posts * Consolidate creating activity+notes in outbound AP messages * Add inbox worker pool. Closes #1570 * Update dev admin bundle * Clean up some logs * Re-enable inbound verfication * Save full IRI to outbox instead of path * Reject if full IRI is not found in outbox * Use full ActivityPub user account in chat event * Fix and expand follower APIs - Add missing IDs to AP follower endpoints - Split AP follower endpoints into initial request and pages. - Support pagination in AP requests. * Include IRI in error message * Hide chat toggle when chat is hidden. Closes #1606 * Updates to followers pagination * Set default go live message * Remove log * indirect -> direct import * Updates for inbound federated event handling. - Keep track of existing events and reject duplicates. - Change what is sent to chat for surfing federated engagement. - Keep track if outbound events are automated "go live" events or not. * Update chat federated engagement. * Update dev admin. * Move from being a person to a bot (service). Closes #1619 * Only set server init date if not already set * Only save notes to outbox able * Rework private-mode followers/approvals * API for returning a list of federated actions for #1573 * Fix too-small follower cells and jumpy tabs. Closes #1616 and closes #1516 * Fix shortcuts getting fired on inputs. Fixes #1489 and #1201 * Add spinner, autoclose + other fixes to follow modal. Fixes #1593 * Fix fetching a single object by IRI * SendFederationMessage -> SendFederatedMessage * Autolink and create tag objects from manual posts. Closes #1620 * Update dev admin bundle * Handle engagement from non-automated/live posts * Reject federated engagement actions if they do not match a local post * Update dev admin bundle * A bunch of cleanup * Fix unused assignments and logic * Remove unused function * Add content warning and sentive content flag if stream is NSFW. Closes #1624 * Disable fetching objects by IRI when in private mode. Closes #1623 * Update the error message of the remote follow dialog. closes #1622 * Update dev admin * Fix NREs throwing in test content * Fix query that wasn't properly filtering out hidden messages * Test against user being disabled instead of message visibility * Fix automated test NRE * Update comment * Adjust federated engagement chat views. Closes #1617 * Add additional index to users table * Add support for removing followers/requests. Closes #1630 * Reject federated actions from blocked actors. #1631 * Use fallback avatar if it fails to load. Closes #1635 * Fix styling of follower list. Closes #1636 * Add basic blurb stating they should follow the server. Closes #1641 * Update dev admin * Set default go live message in migration. Closes #1642 * Reset the messages table on 0.0.11 schema migration * Fix js error with moderation actions. Closes #1621 * Add a bit more clarification on follow modal. Closes #1599 * Remove todos * Split out actor and domain blocking checks * Check for errors on default values being set * Clean up actor rejection due to being blocked * Update dev admin * Add colon to error to make it easier to read * Remove markdown rendering of go live message. Reorganize text. Remove content warning. Closes #1645 * Break out the sort+render messages logic so it can be fired on visibility change. Closes #1643 * Do not send profile updates if federation is disabled * Save follow references to inbound activities table * Update dev admin * Add blocked actor test * Remove the overloaded term of Follow from social links * Fix test running in memory only * Remove "just" in engagement messags * Replace star with heart for like action. * Update dev admin * Explicitly set cc as public * Remove overly using the stream name in fediverse engagement messages * Some federated/follow UI tweaks * Remove explicit cc and bcc as they are not required * Explicitly set the audience * Remove extra margin * Add Join Fediverse button to follow modal. Closes #1651 * Do not allow multiple follows to send multiple events. Closes #1650 * Give events a min height * Do not allow old posts to be liked/shared. Closes #1652 * Remove value from log message * Alert followers on private mode toggle * Ignore clicks to follow button if disabled * Remove underline from action buttons * Add moderator icon to join message * Update admin * Post-merge remove unused var * Remove pointing at feature branch Co-authored-by: Ginger Wong <omqmail@gmail.com>
1 line
10 KiB
JavaScript
Vendored
1 line
10 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[674],{24308:function(e,t,n){n.d(t,{c4:function(){return o}});var c=n(4942),r=n(87462),o=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,i=-1,s={},u={matchHandlers:{},dispatch:function(e){return s=e,l.forEach((function(e){return e(s)})),l.size>=1},subscribe:function(e){return l.size||this.register(),i+=1,l.set(i,e),e(s),i},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],c=e.matchHandlers[n];null===c||void 0===c||c.mql.removeListener(null===c||void 0===c?void 0:c.listener)})),l.clear()},register:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],o=function(n){var o=n.matches;e.dispatch((0,r.Z)((0,r.Z)({},s),(0,c.Z)({},t,o)))},l=window.matchMedia(n);l.addListener(o),e.matchHandlers[n]={mql:l,listener:o},o(l)}))}};t.ZP=u},6226:function(e,t,n){n.d(t,{Z:function(){return m}});var c=n(4942),r=n(87462),o=n(71002),a=n(67294),l=n(94184),i=n.n(l),s=n(99134),u=n(59844),f=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r<c.length;r++)t.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(e,c[r])&&(n[c[r]]=e[c[r]])}return n};var d=["xs","sm","md","lg","xl","xxl"],p=a.forwardRef((function(e,t){var n,l=a.useContext(u.E_),p=l.getPrefixCls,m=l.direction,h=a.useContext(s.Z),v=h.gutter,b=h.wrap,y=h.supportFlexGap,Z=e.prefixCls,x=e.span,g=e.order,C=e.offset,w=e.push,O=e.pull,E=e.className,k=e.children,j=e.flex,N=e.style,P=f(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=p("col",Z),I={};d.forEach((function(t){var n,a={},l=e[t];"number"===typeof l?a.span=l:"object"===(0,o.Z)(l)&&(a=l||{}),delete P[t],I=(0,r.Z)((0,r.Z)({},I),(n={},(0,c.Z)(n,"".concat(S,"-").concat(t,"-").concat(a.span),void 0!==a.span),(0,c.Z)(n,"".concat(S,"-").concat(t,"-order-").concat(a.order),a.order||0===a.order),(0,c.Z)(n,"".concat(S,"-").concat(t,"-offset-").concat(a.offset),a.offset||0===a.offset),(0,c.Z)(n,"".concat(S,"-").concat(t,"-push-").concat(a.push),a.push||0===a.push),(0,c.Z)(n,"".concat(S,"-").concat(t,"-pull-").concat(a.pull),a.pull||0===a.pull),(0,c.Z)(n,"".concat(S,"-rtl"),"rtl"===m),n))}));var R=i()(S,(n={},(0,c.Z)(n,"".concat(S,"-").concat(x),void 0!==x),(0,c.Z)(n,"".concat(S,"-order-").concat(g),g),(0,c.Z)(n,"".concat(S,"-offset-").concat(C),C),(0,c.Z)(n,"".concat(S,"-push-").concat(w),w),(0,c.Z)(n,"".concat(S,"-pull-").concat(O),O),n),E,I),_={};if(v&&v[0]>0){var T=v[0]/2;_.paddingLeft=T,_.paddingRight=T}if(v&&v[1]>0&&!y){var A=v[1]/2;_.paddingTop=A,_.paddingBottom=A}return j&&(_.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(j),!1!==b||_.minWidth||(_.minWidth=0)),a.createElement("div",(0,r.Z)({},P,{style:(0,r.Z)((0,r.Z)({},_),N),className:R,ref:t}),k)}));p.displayName="Col";var m=p},99134:function(e,t,n){var c=(0,n(67294).createContext)({});t.Z=c},25968:function(e,t,n){n.d(t,{Z:function(){return b}});var c=n(87462),r=n(4942),o=n(71002),a=n(97685),l=n(67294),i=n(94184),s=n.n(i),u=n(59844),f=n(99134),d=n(93355),p=n(24308),m=n(98082),h=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r<c.length;r++)t.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(e,c[r])&&(n[c[r]]=e[c[r]])}return n},v=((0,d.b)("top","middle","bottom","stretch"),(0,d.b)("start","end","center","space-around","space-between"),l.forwardRef((function(e,t){var n,i=e.prefixCls,d=e.justify,v=e.align,b=e.className,y=e.style,Z=e.children,x=e.gutter,g=void 0===x?0:x,C=e.wrap,w=h(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),O=l.useContext(u.E_),E=O.getPrefixCls,k=O.direction,j=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),N=(0,a.Z)(j,2),P=N[0],S=N[1],I=(0,m.Z)(),R=l.useRef(g);l.useEffect((function(){var e=p.ZP.subscribe((function(e){var t=R.current||0;(!Array.isArray(t)&&"object"===(0,o.Z)(t)||Array.isArray(t)&&("object"===(0,o.Z)(t[0])||"object"===(0,o.Z)(t[1])))&&S(e)}));return function(){return p.ZP.unsubscribe(e)}}),[]);var _=E("row",i),T=function(){var e=[0,0];return(Array.isArray(g)?g:[g,0]).forEach((function(t,n){if("object"===(0,o.Z)(t))for(var c=0;c<p.c4.length;c++){var r=p.c4[c];if(P[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t||0})),e}(),A=s()(_,(n={},(0,r.Z)(n,"".concat(_,"-no-wrap"),!1===C),(0,r.Z)(n,"".concat(_,"-").concat(d),d),(0,r.Z)(n,"".concat(_,"-").concat(v),v),(0,r.Z)(n,"".concat(_,"-rtl"),"rtl"===k),n),b),z={},H=T[0]>0?T[0]/-2:void 0,L=T[1]>0?T[1]/-2:void 0;if(H&&(z.marginLeft=H,z.marginRight=H),I){var F=(0,a.Z)(T,2);z.rowGap=F[1]}else L&&(z.marginTop=L,z.marginBottom=L);var G=l.useMemo((function(){return{gutter:T,wrap:C,supportFlexGap:I}}),[T,C,I]);return l.createElement(f.Z.Provider,{value:G},l.createElement("div",(0,c.Z)({},w,{className:A,style:(0,c.Z)((0,c.Z)({},z),y),ref:t}),Z))})));v.displayName="Row";var b=v},94594:function(e,t,n){n.d(t,{Z:function(){return g}});var c=n(87462),r=n(4942),o=n(67294),a=n(97685),l=n(91),i=n(94184),s=n.n(i),u=n(21770),f=n(15105),d=o.forwardRef((function(e,t){var n,c=e.prefixCls,i=void 0===c?"rc-switch":c,d=e.className,p=e.checked,m=e.defaultChecked,h=e.disabled,v=e.loadingIcon,b=e.checkedChildren,y=e.unCheckedChildren,Z=e.onClick,x=e.onChange,g=e.onKeyDown,C=(0,l.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),w=(0,u.Z)(!1,{value:p,defaultValue:m}),O=(0,a.Z)(w,2),E=O[0],k=O[1];function j(e,t){var n=E;return h||(k(n=e),null===x||void 0===x||x(n,t)),n}var N=s()(i,d,(n={},(0,r.Z)(n,"".concat(i,"-checked"),E),(0,r.Z)(n,"".concat(i,"-disabled"),h),n));return o.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":E,disabled:h,className:N,ref:t,onKeyDown:function(e){e.which===f.Z.LEFT?j(!1,e):e.which===f.Z.RIGHT&&j(!0,e),null===g||void 0===g||g(e)},onClick:function(e){var t=j(!E,e);null===Z||void 0===Z||Z(t,e)}}),v,o.createElement("span",{className:"".concat(i,"-inner")},E?b:y))}));d.displayName="Switch";var p=d,m=n(50888),h=n(97202),v=n(59844),b=n(97647),y=n(21687),Z=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r<c.length;r++)t.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(e,c[r])&&(n[c[r]]=e[c[r]])}return n},x=o.forwardRef((function(e,t){var n,a=e.prefixCls,l=e.size,i=e.loading,u=e.className,f=void 0===u?"":u,d=e.disabled,x=Z(e,["prefixCls","size","loading","className","disabled"]);(0,y.Z)("checked"in x||!("value"in x),"Switch","`value` is not a valid prop, do you mean `checked`?");var g=o.useContext(v.E_),C=g.getPrefixCls,w=g.direction,O=o.useContext(b.Z),E=C("switch",a),k=o.createElement("div",{className:"".concat(E,"-handle")},i&&o.createElement(m.Z,{className:"".concat(E,"-loading-icon")})),j=s()((n={},(0,r.Z)(n,"".concat(E,"-small"),"small"===(l||O)),(0,r.Z)(n,"".concat(E,"-loading"),i),(0,r.Z)(n,"".concat(E,"-rtl"),"rtl"===w),n),f);return o.createElement(h.Z,{insertExtraNode:!0},o.createElement(p,(0,c.Z)({},x,{prefixCls:E,className:j,disabled:d||i,ref:t,loadingIcon:k})))}));x.__ANT_SWITCH=!0,x.displayName="Switch";var g=x},20550:function(e,t,n){n.d(t,{Z:function(){return g}});var c=n(4942),r=n(87462),o=n(97685),a=n(67294),l=n(94184),i=n.n(l),s=n(98423),u=n(97937),f=n(59844),d=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r<c.length;r++)t.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(e,c[r])&&(n[c[r]]=e[c[r]])}return n},p=function(e){var t,n=e.prefixCls,o=e.className,l=e.checked,s=e.onChange,u=e.onClick,p=d(e,["prefixCls","className","checked","onChange","onClick"]),m=(0,a.useContext(f.E_).getPrefixCls)("tag",n),h=i()(m,(t={},(0,c.Z)(t,"".concat(m,"-checkable"),!0),(0,c.Z)(t,"".concat(m,"-checkable-checked"),l),t),o);return a.createElement("span",(0,r.Z)({},p,{className:h,onClick:function(e){null===s||void 0===s||s(!l),null===u||void 0===u||u(e)}}))},m=n(98787),h=n(97202),v=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(c=Object.getOwnPropertySymbols(e);r<c.length;r++)t.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(e,c[r])&&(n[c[r]]=e[c[r]])}return n},b=new RegExp("^(".concat(m.Y.join("|"),")(-inverse)?$")),y=new RegExp("^(".concat(m.E.join("|"),")$")),Z=function(e,t){var n,l=e.prefixCls,d=e.className,p=e.style,m=e.children,Z=e.icon,x=e.color,g=e.onClose,C=e.closeIcon,w=e.closable,O=void 0!==w&&w,E=v(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),k=a.useContext(f.E_),j=k.getPrefixCls,N=k.direction,P=a.useState(!0),S=(0,o.Z)(P,2),I=S[0],R=S[1];a.useEffect((function(){"visible"in E&&R(E.visible)}),[E.visible]);var _=function(){return!!x&&(b.test(x)||y.test(x))},T=(0,r.Z)({backgroundColor:x&&!_()?x:void 0},p),A=_(),z=j("tag",l),H=i()(z,(n={},(0,c.Z)(n,"".concat(z,"-").concat(x),A),(0,c.Z)(n,"".concat(z,"-has-color"),x&&!A),(0,c.Z)(n,"".concat(z,"-hidden"),!I),(0,c.Z)(n,"".concat(z,"-rtl"),"rtl"===N),n),d),L=function(e){e.stopPropagation(),null===g||void 0===g||g(e),e.defaultPrevented||"visible"in E||R(!1)},F="onClick"in E||m&&"a"===m.type,G=(0,s.Z)(E,["visible"]),D=Z||null,K=D?a.createElement(a.Fragment,null,D,a.createElement("span",null,m)):m,M=a.createElement("span",(0,r.Z)({},G,{ref:t,className:H,style:T}),K,O?C?a.createElement("span",{className:"".concat(z,"-close-icon"),onClick:L},C):a.createElement(u.Z,{className:"".concat(z,"-close-icon"),onClick:L}):null);return F?a.createElement(h.Z,null,M):M},x=a.forwardRef(Z);x.displayName="Tag",x.CheckableTag=p;var g=x}}]); |