Clean up the messy code #1

closed cmc opened this on 2026-09-11 01:21 UTC

Discussion

cmc 2026-09-11 01:21 UTC

Carried over from TODO.md. General cleanup pass over the codebase.

referenced in commit 028903ac81 by cmc: Link local files in README and move TODO items to issues

2026-09-11 01:24 UTC

referenced in commit c22afa0a45 by cmc: Parse media and post URLs instead of slicing them by offset

2026-09-12 02:18 UTC
cmc 2026-09-12 03:06 UTC

Covered across the v1.5 line:

  • !33: media and post URLs are parsed instead of sliced by fixed offsets (wixmpMedia, proxiedMediaURL, ConvertDeviantArtURLToSkunkyArt); sendMedia no longer duplicates ParseMedia; GetValueOfTag lost its one-iteration loop; the stale TODOs in cache.go and api.go are gone.
  • !34: the description parser's TODO is resolved by the document renderer; the Draft.js branch stays as legacy handling for older posts.
  • !31: cache rotation is one testable function and the per-platform stat files are gone.
  • !13: templates parse once at startup.

What remains is the Draft.js branch's style, which only older posts exercise and which has fixtures now if anyone wants to rewrite it. Closing.