feat: add URL-driven workspace state and streamed Codex research
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import type { Post, PostPage } from './types'
|
||||
import type { Post, PostPage } from "./types";
|
||||
|
||||
export function flattenPostPages(pages: PostPage[]): Post[] {
|
||||
const seen = new Set<string>()
|
||||
const seen = new Set<string>();
|
||||
return pages.flatMap(({ tweets }) =>
|
||||
tweets.filter(({ id }) => {
|
||||
if (seen.has(id)) return false
|
||||
seen.add(id)
|
||||
return true
|
||||
if (seen.has(id)) return false;
|
||||
seen.add(id);
|
||||
return true;
|
||||
}),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user