atproto pds in zig pds.zat.dev
pds atproto
24

Configure Feed

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

Allow spaces viewer to list all collections

zzstoatzz (Jun 9, 2026, 1:34 PM -0500) ade490fc cf7de7d9

+4 -5
+4 -5
src/internal/private_spaces.zig
··· 68 68 \\<select id="repo"></select> 69 69 \\</div> 70 70 \\<div> 71 - \\<label for="collection">collection</label> 72 - \\<input id="collection" placeholder="fm.plyr.stg.track" spellcheck="false"> 71 + \\<label for="collection">collection, optional</label> 72 + \\<input id="collection" placeholder="all collections" spellcheck="false"> 73 73 \\</div> 74 74 \\</div> 75 75 \\<div class="actions"> ··· 133 133 \\} 134 134 \\function renderRecords(records, append=false){ 135 135 \\ const box=$('records'); if(!append) box.innerHTML=''; 136 - \\ if(!records.length && !append){box.innerHTML='<div class="empty">No records for that repo and collection.</div>'} 136 + \\ if(!records.length && !append){box.innerHTML='<div class="empty">No records for that repo.</div>'} 137 137 \\ for(const rec of records){ 138 138 \\ const btn=document.createElement('button'); btn.type='button'; btn.className='item'; 139 139 \\ btn.innerHTML='<span class="item-title">'+esc(rec.collection)+' / '+esc(rec.rkey)+'</span><span class="item-meta">'+esc(rec.cid)+'</span>'; ··· 146 146 \\ if(!selectedSpace){setStatus('choose a space first','error');return} 147 147 \\ const repo=$('repo').value.trim(); const collection=$('collection').value.trim(); 148 148 \\ if(!repo){setStatus('choose a member repo','error');return} 149 - \\ if(!collection){setStatus('enter a collection NSID','error');return} 150 149 \\ setStatus('loading records...'); 151 - \\ const params={space:selectedSpace,repo,collection,limit:'50'}; if(append&&cursor) params.cursor=cursor; 150 + \\ const params={space:selectedSpace,repo,limit:'50'}; if(collection) params.collection=collection; if(append&&cursor) params.cursor=cursor; 152 151 \\ const out=await xrpc('/xrpc/com.atproto.space.listRecords',params); 153 152 \\ cursor=out.cursor||null; $('next-records').disabled=!cursor; 154 153 \\ renderRecords(out.records||[], append);