Evilham dc0db05d07
Minor localisation and usability bugfixes
When the server's locale and/or timezone are different from that in
Gancio, weird things were happening.

While there, we make `renderEvent` a tad more modular so that
potentially new settings can be introduced in the future.

Introduced changes:

- `renderEventDateTime` uses both Gancio's locale and timezone, this
  has the effect that (in theory! please test) no matter the server's
  timezone, the message will be rendered according to Gancio's
  settings (which is, I'd argue, an admin's expectation)
- `renderEventTitle` generates a link to Gancio's event, which people
  can use to get more info
- I noticed while importing events that sometimes the `description`
  field could be prefilled with `null` as a string, while this might
  be a Gancio bug to fix, we can also skip those descriptions

New boolean configuration options:
- `skip_link_to_gancio`: it skips the final link to Gancio making the
  message slightly shorter
- `tags_link_to_gancio`: it affects `renderEventTags`, which by
  default allows Telegram to handle tags. When this option is applied,
  tags link instead to their Gancio site, which lists all related
  events on the instance
2023-05-31 20:57:25 +02:00
config.sample.json Minor localisation and usability bugfixes 2023-05-31 20:57:25 +02:00