@@ -32,7 +32,6 @@ export const useNotebooks = () => {
3232 const { data, isLoading: metadataLoading } = useQuery('metadata', () => api.subscribeOnce<MetaDataUpdate>('metadata-store', '/all'));
3333 const { groups, loading } = usePublicGroups(data || {} as MetaDataUpdate);
3434
35− console.log(keys);
3635 const notebooks: Record<string, Association<MetadataConfig>> = _.fromPairs(!data || loading ? [] : Object.entries(data['metadata-update'].associations)
3736 .filter(([,v]) => v['app-name'] === 'graph'
3837 && 'graph' in v.metadata.config
@@ -41,8 +40,6 @@ export const useNotebooks = () => {
4140 && groups.find(([, gv]) => gv.group === v.group)
4241 ).map(([,v]) => [v.resource.replace('/ship/', ''), v]));
4342
44− console.log(data)
45−
4643 return {
4744 loading: metadataLoading || loading,
4845 notebooks,
@@ -85,7 +82,7 @@ export const usePosts = (ship: string, name: string, type: PostType, tags: strin
8582 }}
8683 }) : [];
8784
88− const posts = items.filter(p => !d || d.listings.length === 0 || d.listings.find(l => l.post.link === p.post.link));
85+ const posts = items.filter(p => !d || d.listings.length === 0 || !d.listings.find(l => l.post.link === p.post.link));
8986
9087 return {
9188 notebook: association,
@@ -130,7 +127,6 @@ export function getSnippet(body: Content[]): { image: string, content: string }
130127
131128 let sum = 0;
132129 const firstContent = body.reduce((text, c) => {
133− debugger;
134130 if ('text' in c && sum < 255) {
135131 sum += removeMd(c.text).length;
136132 return text + c.text + ' ';
@@ -143,9 +139,6 @@ export function getSnippet(body: Content[]): { image: string, content: string }
143139 const end = content.length > 256 ? 255 : content.length;
144140 const start = content.substring(0, end);
145141
146− if (firstContent.match(/jiddu/i)) {
147− debugger;
148− }
149142 return {
150143 content: start === firstContent ? start : `${start}...`,
151144 image: getImage(firstContent) || image