Recapture image→post linking (#1288) + ugoira timings + system suggestion category #192
Reference in New Issue
Block a user
Delete Branch "dev"
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?
Merges dev → main. All CI-green on dev head
8838b32(run 1925). No new migration — all three changes are code-only.Recapture links on-disk images to their post (issue #1288)
Recapture disk-skips already-downloaded media and
upsert_post_recordonly writes Post fields, so pre-existing images (pulled under the old gallery-dl path, imported bare) stayed orphaned even after their post record was written — confirmed 329 orphaned pixiv images / 694 content-only posts / 0 dup posts on the operator's instance. Fix: the recapture relink channel now carries the media's post_id, and phase 3 callsimporter.link_existing_image_to_post(match image by path, find Post by source+external_post_id, upsert image_provenance + primary_post_id). Provenance-linking factored into a shared_attach_provenance(DRY with the fresh-import path). Idempotent; no-op for already-linked Patreon/SubscribeStar.Operator action after deploy: re-run Recapture on the pixiv sources — it now back-links the orphaned art as it re-walks.
Pixiv ugoira frame timings (issue #1287)
write_post_recordruns before extract_media, so ugoira frame delays were never captured. Now fetched via a shared/memoized client call (zero extra API calls). Recapture also backfills these.System suggestion category (task #1286)
wip/banner/editor suggestions group under their own "System" category (top of the panel, above Character/General) instead of mixing into General, so false positives are easy to reject.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CDgx8bQS5YrGRK76v8HUnM