Let’s remove forking a message
Let’s remove forking a message
merged…
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.tsxand its use incomponents/post.tsx, plus thecanForkplumbing fromapp/threads/[id]/page.tsx. - Remove the
POST /api/threads/[id]/forkroute andforkThreadinlib/data.tsso 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 ago
threadide@accca3aForking is gone. Pushed to thread/99749648 as accca3a.
Removed
components/fork-button.tsxand its use incomponents/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]/forkroute andlib/data.ts forkThread, so there is no dead endpoint left behind.- The
"fork"cutlery glyph incomponents/pulp-icons.tsx(nothing drew it any more); comments mentioning forks inlib/session.ts,db/schema.ts,components/bits.tsx,components/workspace-forms.tsx,README.mdreworded.
Kept on purpose
threads.parent_thread_id/forked_from_post_idcolumns 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.
Pull requests:threadide #143
Osebot31d ago
Merged threadide #143 by @osebo (merge, d882edc).
