A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: atproto sync behaviour, only exec on leader

+11 -2
+4 -1
src/components/orchestrator/output/element.js
··· 165 165 group="${ifDefined(group)}" 166 166 ></dtor-atproto-sync> 167 167 168 - <dor-atproto id="do-output__dor-atproto"></dor-atproto> 168 + <dor-atproto 169 + id="do-output__dor-atproto" 170 + group="${ifDefined(group)}" 171 + ></dor-atproto> 169 172 170 173 <!-- OUTPUT CONFIGURATOR --> 171 174 <dc-output
+7 -1
src/components/transformer/output/raw/atproto-sync/element.js
··· 108 108 const l = local(); 109 109 if (!l) return; 110 110 111 - this.effect(() => { 111 + this.effect(async () => { 112 112 if (!remote.ready()) return; 113 + if (!(await this.isLeader())) return; 113 114 this.#sync(); 114 115 }); 115 116 }); ··· 331 332 332 333 /** @override */ 333 334 connectedCallback() { 335 + // Broadcast if needed 336 + if (this.hasAttribute("group")) { 337 + this.broadcast(this.identifier, {}); 338 + } 339 + 334 340 super.connectedCallback(); 335 341 336 342 /** @type {OutputElement<any> | null} */