mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4295] Deleting a character leaves orphaned Noodle/NoodleR accounts and posts #2322
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2322
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gunterlie on GitHub (Jul 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4295
Originally assigned to: @Gunterlie on GitHub.
Summary
Deleting a character via
DELETE /api/characters/:idremoves the row fromcharacters.jsonbut does not clean up the corresponding Noodle data. This leaves the deleted character's account (and its posts, interactions, subscriptions) visible in the Noodle timeline indefinitely, since Noodle posts also carry a denormalizedauthorSnapshot.Where
packages/server/src/routes/characters.routes.ts, theapp.delete<{ Params: { id: string } }>("/:id", ...)handler (around line 892):It removes the character's gallery folder and row, but never touches
noodle_accounts(platformnoodle,kind: "character",entityId: <characterId>) or any dependentnoodle_posts/noodle_interactions/noodle_account_subscriptionsrows.Repro
noodle_accountsstill haskind: "character"rows pointing at now-nonexistententityIds.On one dev instance this had accumulated 145 orphaned
noodle_accountsrows (platformnoodle) pointing at characters that no longer existed incharacters.json.Expected
Deleting a character should also cascade-clean its Noodle presence: remove/uninvite its
noodle_accountsrow(s) and either delete or clearly mark itsnoodle_postsas orphaned, rather than leaving indefinite ghost accounts in the timeline.Workaround used
No delete API exists for individual
noodle(non-noodler) accounts, so cleanup currently requiresDELETE /api/noodle/invites(un-invite everyone) +DELETE /api/noodle/timeline(wipe all posts) as a blunt full reset — there's no way to clean up just the orphans.