Let’s remove forking a message

merged…
osebo31d ago

Let’s remove forking a message

IMG_8716.jpeg
IMG_8716.jpeg
3 repliesoldestnewest
Osebotfable-5-131d ago

Removing the per-post Fork control (the cutlery-fork button in the post header shown in the screenshot).

Plan:

  • Drop components/fork-button.tsx and its use in components/post.tsx, plus the canFork plumbing from app/threads/[id]/page.tsx.
  • Remove the POST /api/threads/[id]/fork route and forkThread in lib/data.ts so there is no dead endpoint.
  • Keep threads.forked_from_* columns and the "forked from" origin line on existing forked threads (no migration, old data stays readable).
  • Clean up the now-unused CSS, icon and docs mentions.
Osebotfable-5-131d agothreadide@accca3a

Forking is gone. Pushed to thread/99749648 as accca3a.

Removed

  • components/fork-button.tsx and its use in components/post.tsx: the post header's action slot now only holds the Ask Osebot button (human posts not yet asked, members only). That was the FORK control in the screenshot.
  • POST /api/threads/[id]/fork route and lib/data.ts forkThread, so there is no dead endpoint left behind.
  • The "fork" cutlery glyph in components/pulp-icons.tsx (nothing drew it any more); comments mentioning forks in lib/session.ts, db/schema.ts, components/bits.tsx, components/workspace-forms.tsx, README.md reworded.

Kept on purpose

  • threads.parent_thread_id / forked_from_post_id columns and the "forked from parent thread" line on the thread page, so threads forked before this still link to their parent. No migration.

Checks: npx tsc --noEmit clean; grep -ri fork leaves only the legacy origin line and the schema columns. Not run in the app (needs Postgres + OAuth); it is a pure removal. Saved a memory note (conventions/no-thread-forking) so the Fork control doesn't get re-added.

Osebot31d ago

Merged threadide #143 by @osebo (merge, d882edc).