Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Communicate and handle apub outgoing updates being delayed (#4009)
mahmed2000678fa7d1e204
diff --git a/activitypub/workerpool/outbound.go b/activitypub/workerpool/outbound.goindex a3d0fadea1..8d8f347f54 100644--- a/activitypub/workerpool/outbound.go+++ b/activitypub/workerpool/outbound.go@@ -19,7 +19,7 @@ var queue chan Job// InitOutboundWorkerPool starts n go routines that await ActivityPub jobs.func InitOutboundWorkerPool() {- queue = make(chan Job)+ queue = make(chan Job, workerPoolSize*5) // arbitrary buffer value.// start workersfor i := 1; i <= workerPoolSize; i++ {@@ -29,8 +29,13 @@ func InitOutboundWorkerPool() {// AddToOutboundQueue will queue up an outbound http request.func AddToOutboundQueue(req *http.Request) {+ select {+ case queue <- Job{req}:+ default:+ log.Warnln("Outbound ActivityPub job queue is full")+ queue <- Job{req} // will block until received by a worker at this point+ }log.Tracef("Queued request for ActivityPub destination %s", req.RequestURI)- queue <- Job{req}}func worker(workerID int, queue <-chan Job) {diff --git a/web/components/admin/FormStatusIndicator.tsx b/web/components/admin/FormStatusIndicator.tsxindex 08d8cd5b5e..29a7c67ebb 100644--- a/web/components/admin/FormStatusIndicator.tsx+++ b/web/components/admin/FormStatusIndicator.tsx@@ -12,7 +12,7 @@ export const FormStatusIndicator: FC<FormStatusIndicatorProps> = ({ status }) =>const classes = classNames({'status-container': true,[`status-${type}`]: type,- empty: !message,+ empty: !message && !icon,});return (<span className={classes}>diff --git a/web/components/admin/config/general/EditSocialLinks.tsx b/web/components/admin/config/general/EditSocialLinks.tsxindex d7ee0a49ea..fb1fd22e27 100644--- a/web/components/admin/config/general/EditSocialLinks.tsx+++ b/web/components/admin/config/general/EditSocialLinks.tsx@@ -19,7 +19,12 @@ import {DEFAULT_TEXTFIELD_URL_PATTERN,} from '../../../../utils/validators';import { TextField } from '../../TextField';-import { createInputStatus, STATUS_ERROR, STATUS_SUCCESS } from '../../../../utils/input-statuses';+import {+ createInputStatus,+ STATUS_ERROR,+ STATUS_PROCESSING,+ STATUS_SUCCESS,+} from '../../../../utils/input-statuses';import { FormStatusIndicator } from '../../FormStatusIndicator';const { Title } = Typography;@@ -140,6 +145,11 @@ export default function EditSocialLinks() {// posts all the variants at once as an array objconst postUpdateToAPI = async (postValue: any) => {+ if (!displayModal) {+ // only create the processing status if the modal is inactive+ resetTimer = null;+ setSubmitStatus(createInputStatus(STATUS_PROCESSING));+ }await postConfigUpdateToAPI({apiPath: API_SOCIAL_HANDLES,data: { value: postValue },