From bf05dcf7dbad4be3f8a94b796720df4e6a27250a Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Thu, 29 Jan 2026 11:54:36 -0500 Subject: [PATCH] filter out non leaflet pubs by heuristic --- components/ActionBar/Publications.tsx | 32 ++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/components/ActionBar/Publications.tsx b/components/ActionBar/Publications.tsx index 305db983..80b58eb1 100644 --- a/components/ActionBar/Publications.tsx +++ b/components/ActionBar/Publications.tsx @@ -62,16 +62,28 @@ export const PublicationButtons = (props: { )} - {identity.publications?.map((d) => { - return ( - - ); - })} + {identity.publications + ?.filter((p) => { + let record = p.record as any; + if (record.preferences?.greengale) return false; + if ( + record.theme && + record.theme.$type && + record.theme.$type !== "pub.leaflet.publication#theme" + ) + return false; + return true; + }) + .map((d) => { + return ( + + ); + })}