Commit Graph

1364 Commits

Author SHA1 Message Date
svemagie
c8d4dee35e docs: move IndieKit server config notes to indiekit-server CLAUDE.md
The store-github/Gitea config, Micropub dispatch, and server-push
technique all belong in the server repo. Removed from here; added to
indiekit-server/CLAUDE.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 16:12:54 +02:00
svemagie
4911219549 chore: replace GitHub icon with official Gitea SVG in sidebar widget
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m21s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 15:27:17 +02:00
svemagie
219c18138c fix(og): match plain URL slugs; fix Funkwhale GC wipe
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m19s
og-fix transform was matching date-based URL segments
(/type/yyyy/MM/dd/slug/) that this site never uses — posts live at
/type/slug/. Every post therefore fell through to the default OG image.

Fixed by updating the regex to /type/slug/index.html and deriving the OG
slug as the bare last URL segment, which matches the filename og.js
already generates. The ogSlug filter is simplified accordingly.

Funkwhale GC bug: gcFunkwhaleImages() deleted the entire image cache
whenever _activeFilenames was empty — which happens if the API returns
valid stats but no listenings with cover URLs. Guard added: GC is
skipped when no images were referenced this build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 14:04:34 +02:00
svemagie
b50006245d fix(changelog): switch to page-based pagination (Gitea ignores 'since')
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m13s
Gitea's commits API ignores the 'since' query param entirely, so all
360 commits were fetched via multiple pages on every load.

Replace days-based approach with simple page pagination:
- Initial load: page 1, limit=50 per repo (2 requests, ~2s)
- Load more: appends page 2, 3, ... on demand
- No more while loop or date filtering
- Remove daysProgression / currentDays state
- Clean up summary text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 13:43:31 +02:00
svemagie
acaff70cfe fix(changelog): break pagination when commits pass date cutoff
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 2m13s
Gitea's commits API ignores the 'since' param, returning all 360+
commits regardless. Added client-side date filtering: skip commits
older than the cutoff and break pagination early once a page contains
commits past the cutoff. Prevents fetching 7+ pages on every load.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 13:33:13 +02:00
svemagie
139e4b608b docs: update CLAUDE.md for Gitea migration
- Sharp restore path corrected to src/build/Release/ (0.33.x)
- GITEA_URL / GITEA_ORG added to deploy env var reference
- Document store-github → Gitea config (trailing slash gotcha, GH_CONTENT_TOKEN alias)
- Document custom gitea_runner rc service and Micropub dispatch patch
- Document Gitea sidebar widget and changelog migration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 12:59:22 +02:00
svemagie
a6f87de59d chore: switch GitHub widget and changelog to Gitea
- Sidebar "GitHub" widget renamed to "Gitea", links point to gitea.giersig.eu/giersig.eu
- Runtime widget JS fetches commits/repos/PRs directly from Gitea API
- Build-time data files (githubActivity, githubRepos) switched from GitHub API to Gitea API
- changelog.njk fetches from Gitea API directly with client-side commit categorisation
- GITEA_URL / GITEA_ORG added to deploy.yml build env

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 12:46:01 +02:00
0f250c4b8d chore: switch GitHub widget and changelog to Gitea 2026-03-31 12:45:13 +02:00
ea92cffb54 fix: sharp src/build/Release path + delete stale cache 2026-03-31 12:22:18 +02:00
8212c7a2cf fix: sharp cache restore path (remove fragile find+xargs) 2026-03-31 12:17:28 +02:00
56589c4445 test: push trigger check 2026-03-31 11:59:20 +02:00
1a07465a80 feat: rescue orphaned note 8ff35 2026-03-31 11:46:20 +02:00
bc7936f823 test: cleanup 2026-03-31 11:42:02 +02:00
790361926e test: verify Gitea write path 2026-03-31 11:42:02 +02:00
svemagie
2837f2af38 docs: update CLAUDE.md with Gitea CI setup and infra details
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 11:37:16 +02:00
8d030b64a1 ci: fix BSD head -n -1 -> sed $d 2026-03-31 10:43:50 +02:00
4da7e8edb3 ci: add sharp binary cache + fix syndication internal URL 2026-03-31 10:37:42 +02:00
effaca11f0 ci: use internal URL for syndication webhook 2026-03-31 10:10:42 +02:00
79ee1d9ea8 ci: add node-gyp dep for sharp build from source 2026-03-31 09:56:20 +02:00
fcacc12dd4 ci: add node-addon-api dep for sharp build from source 2026-03-31 09:54:29 +02:00
aba4a41dd7 ci: build sharp from source for FreeBSD 2026-03-31 09:53:00 +02:00
79f89023b0 ci: force-install sharp-wasm32 to bypass cpu check 2026-03-31 09:51:02 +02:00
1632db3efd ci: fix secrets typo + wasm32 sharp fallback 2026-03-31 09:49:39 +02:00
7321a05419 ci: install sharp wasm32 fallback for FreeBSD 2026-03-31 09:48:50 +02:00
190a1d9684 ci: rebuild sharp from source for FreeBSD runner 2026-03-31 09:41:52 +02:00
30afa60930 ci: adapt deploy workflow for Gitea FreeBSD runner 2026-03-31 09:17:18 +02:00
svemagie
a2da6fc3eb update note post 2026-03-30 17:13:53 +02:00
svemagie
c076b1ea57 create note post 2026-03-30 17:12:31 +02:00
svemagie
a7b1c6b142 create reply post 2026-03-30 08:23:01 +02:00
svemagie
ba28cb83f4 delete reply post 2026-03-30 08:21:49 +02:00
svemagie
2e7fe9b51a create reply post 2026-03-29 11:47:12 +02:00
svemagie
5c5f34b4ab delete note post 2026-03-29 11:42:15 +02:00
svemagie
14b06de459 delete note post 2026-03-29 11:41:01 +02:00
svemagie
7b129b99b2 update note post 2026-03-29 11:38:44 +02:00
svemagie
4de026c74f update note post 2026-03-29 11:38:19 +02:00
svemagie
348fe040c3 create note post 2026-03-29 11:35:30 +02:00
svemagie
eea47c1eb7 create note post 2026-03-29 11:34:17 +02:00
svemagie
ca7ea2ae5f update reply post 2026-03-29 11:26:00 +02:00
svemagie
85630054d7 create reply post 2026-03-29 11:25:17 +02:00
svemagie
91564e21f8 update photo post 2026-03-29 11:11:40 +02:00
svemagie
be6d9a89ec fix: link dashboard 2026-03-29 08:51:37 +02:00
svemagie
f2b780f6ba chore: img opt 2026-03-29 08:48:44 +02:00
svemagie
507402e983 chore: superpowers to gitignore 2026-03-29 08:47:40 +02:00
svemagie
e5cb8f689c update photo post 2026-03-29 08:38:16 +02:00
svemagie
06c161d448 create photo post 2026-03-29 08:36:58 +02:00
svemagie
d766b2ffcc upload photo file 2026-03-29 08:35:22 +02:00
svemagie
592e060859 create like post 2026-03-28 21:55:41 +01:00
svemagie
82297a258b update reply post 2026-03-28 21:39:02 +01:00
svemagie
7a0c2ffd71 create reply post 2026-03-28 21:37:49 +01:00
svemagie
7729c5696c update bookmark post 2026-03-28 16:41:50 +01:00