tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
a tool for shared writing and social publishing
284
fork
atom
overview
issues
27
pulls
pipelines
filter out non leaflet pubs by heuristic
awarm.space
1 week ago
bf05dcf7
ea44877f
+22
-10
1 changed file
expand all
collapse all
unified
split
components
ActionBar
Publications.tsx
+22
-10
components/ActionBar/Publications.tsx
···
62
62
</>
63
63
)}
64
64
65
65
-
{identity.publications?.map((d) => {
66
66
-
return (
67
67
-
<PublicationOption
68
68
-
{...d}
69
69
-
key={d.uri}
70
70
-
record={d.record}
71
71
-
current={d.uri === props.currentPubUri}
72
72
-
/>
73
73
-
);
74
74
-
})}
65
65
+
{identity.publications
66
66
+
?.filter((p) => {
67
67
+
let record = p.record as any;
68
68
+
if (record.preferences?.greengale) return false;
69
69
+
if (
70
70
+
record.theme &&
71
71
+
record.theme.$type &&
72
72
+
record.theme.$type !== "pub.leaflet.publication#theme"
73
73
+
)
74
74
+
return false;
75
75
+
return true;
76
76
+
})
77
77
+
.map((d) => {
78
78
+
return (
79
79
+
<PublicationOption
80
80
+
{...d}
81
81
+
key={d.uri}
82
82
+
record={d.record}
83
83
+
current={d.uri === props.currentPubUri}
84
84
+
/>
85
85
+
);
86
86
+
})}
75
87
<Link
76
88
href={"/lish/createPub"}
77
89
className="pubListCreateNew text-accent-contrast text-sm place-self-end hover:text-accent-contrast"