Author: Michael Lynch <git@mtlynch.io>
Committer: Michael Lynch <mtlynch@noreply.codeberg.org>
Simplify MediaItem.Filenames() with an extension table and shared variant helper (#409) Now that all resized variants share the same "-<width>px.jpg" naming, the only per-type difference left in Filenames() is the full-size file extension. Replace the extension switch with a lookup table and build all three resized variants (display, desktop thumbnail, mobile thumbnail) through one helper instead of three hand-written literals. This adapts the better-filenames branch, whose per-type spec table is no longer needed after the thumbnail suffix unification. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/409