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 ( + + ); + })}