Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ nori-substack note export \
--output notes.json
```

To select an approved older Note, add `--note-id <id>`; the author and top-level filters still apply while the lookback cutoff is bypassed. Notes are ordered oldest first and preserve text, quote blocks, links, remote images, IDs, and timestamps. Note artifacts advertise `capabilities: ["note-restack-parent"]`. A Note that restacks another Note includes `restackOf: { "kind": "note", "id": "<parent-id>" }`, so a destination workflow can map the parent to its native post instead of flattening it into the child text.
To select an approved older Note, add `--note-id <id>`; the author and top-level filters still apply while the lookback cutoff is bypassed. Notes are ordered oldest first and preserve text, quote blocks, links, remote images, IDs, and timestamps. Note artifacts advertise `capabilities: ["note-restack-parent"]`. A Note that restacks another Note includes `restackOf: { "kind": "note", "id": "<parent-id>" }`, so a destination workflow can map the parent to its native post instead of flattening it into the child text. A Note that restacks a Note or a post (with a comment) also carries `restacked: { kind, id, author: { name, handle }, title?, text, url }`, the restacked item as a reviewer sees it; a post restack's `text` is the quoted selection (or the post subtitle) and its flattened text is unchanged. Artifacts with `restacked` advertise `note-restacked-item`.

Add `--include-restacks` to also export the author's restacks *without* a comment of other people's Notes and posts. They read the full profile feed (the Notes-only feed omits them), have ids `restack-c-<note-id>` / `restack-p-<post-id>`, empty `text`, the restack time as `publishedAt`, and a `restacked` item; the artifact advertises `note-restacks`. Restacks of the author's own Notes or posts are not exported, and without the flag no restack without a comment is ever exported.

Example Article artifact:

Expand Down
1 change: 1 addition & 0 deletions dist/clients/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export declare class PublicClient {
getPost(publicationUrl: string, postId: string): Promise<unknown>;
getPostBySlug(publicationUrl: string, slug: string): Promise<unknown>;
getProfileNotes(accountOrigin: string, userId: string, cursor?: string): Promise<unknown>;
getProfileFeed(accountOrigin: string, userId: string, cursor?: string): Promise<unknown>;
listComments(publicationUrl: string, postId: string, limit?: number): Promise<unknown>;
getProfile(accountOrigin: string, userId: string, handle: string): Promise<unknown>;
categories(accountOrigin: string): Promise<unknown>;
Expand Down
1 change: 1 addition & 0 deletions dist/clients/public.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/clients/public.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commands/execute-public.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading