Duration backgrounds with long image addresses now show.
Fixed
- Long background addresses (#365, [#366]). A duration's background image whose address was longer than 256 characters was silently left out, which is common for Wikimedia Commons thumbnails. Web addresses of up to 1,024 characters are now kept, in the server, the editor and the desktop app.
Added
- Warnings when an address is still too long (#366). Creating, saving, changing or importing a timeline through the API still succeeds, but the response carries a
warningsarray naming the durations whose background addresses are over 1,024 characters. Importing a file in the editor shows the same warning in its notice. See Warnings in the API docs.
Upgrading
Install the new package and run openchronology-migrate as usual. The migration adds a small oc_migrations table and, once, rebuilds the index of any timeline (and of forks that read from it) that has a duration with a web address between 257 and 1,024 characters long, so those backgrounds show without the timeline being saved again. Timelines without such addresses are not touched.