a tool for shared writing and social publishing

filter out non leaflet pubs by heuristic

+22 -10
+22 -10
components/ActionBar/Publications.tsx
··· 62 </> 63 )} 64 65 - {identity.publications?.map((d) => { 66 - return ( 67 - <PublicationOption 68 - {...d} 69 - key={d.uri} 70 - record={d.record} 71 - current={d.uri === props.currentPubUri} 72 - /> 73 - ); 74 - })} 75 <Link 76 href={"/lish/createPub"} 77 className="pubListCreateNew text-accent-contrast text-sm place-self-end hover:text-accent-contrast"
··· 62 </> 63 )} 64 65 + {identity.publications 66 + ?.filter((p) => { 67 + let record = p.record as any; 68 + if (record.preferences?.greengale) return false; 69 + if ( 70 + record.theme && 71 + record.theme.$type && 72 + record.theme.$type !== "pub.leaflet.publication#theme" 73 + ) 74 + return false; 75 + return true; 76 + }) 77 + .map((d) => { 78 + return ( 79 + <PublicationOption 80 + {...d} 81 + key={d.uri} 82 + record={d.record} 83 + current={d.uri === props.currentPubUri} 84 + /> 85 + ); 86 + })} 87 <Link 88 href={"/lish/createPub"} 89 className="pubListCreateNew text-accent-contrast text-sm place-self-end hover:text-accent-contrast"