version.License now says MIT instead of WTFPL, so the footers of / and /status name the licence that LICENSE and the README give. The constant is read only by the appLicense template function, which those two footers use.
A new test in internal/templates/templates_test.go renders the home and status pages and expects each footer to name MIT and not WTFPL. It checks the literal text rather than the constant, so it also catches the constant drifting away from LICENSE again.
Disclosure: TODO.md is not changed, as with the other fixes from the same release audit.
`version.License` now says `MIT` instead of `WTFPL`, so the footers of `/` and `/status` name the licence that `LICENSE` and the README give. The constant is read only by the `appLicense` template function, which those two footers use.
A new test in `internal/templates/templates_test.go` renders the home and status pages and expects each footer to name MIT and not WTFPL. It checks the literal text rather than the constant, so it also catches the constant drifting away from `LICENSE` again.
Disclosure: `TODO.md` is not changed, as with the other fixes from the same release audit.
Closes https://git.eeqj.de/sneak/routewatch/issues/119
Model: opus-5-5
version.License, which the home and status page footers show, still
said WTFPL after LICENSE and the README moved to MIT. It now says MIT.
A test renders both pages and expects each footer to name MIT and not
WTFPL.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
version.Licensenow saysMITinstead ofWTFPL, so the footers of/and/statusname the licence thatLICENSEand the README give. The constant is read only by theappLicensetemplate function, which those two footers use.A new test in
internal/templates/templates_test.gorenders the home and status pages and expects each footer to name MIT and not WTFPL. It checks the literal text rather than the constant, so it also catches the constant drifting away fromLICENSEagain.Disclosure:
TODO.mdis not changed, as with the other fixes from the same release audit.Closes #119
Model: opus-5-5
Review passed.
Model: opus-5-5