Skip to content
Snippets Groups Projects
  1. Oct 08, 2021
  2. Oct 07, 2021
  3. Oct 05, 2021
  4. Oct 03, 2021
  5. Oct 02, 2021
  6. Oct 01, 2021
  7. Sep 30, 2021
  8. Sep 29, 2021
    • syuilo's avatar
      fix bug · 18fa317e
      syuilo authored
      18fa317e
    • Johann150's avatar
      fix: truncate image descriptions (#7699) · 414f1d11
      Johann150 authored
      
      * move truncate function to separate file to reuse it
      
      * truncate image descriptions
      
      * show image description limit in UI
      
      * correctly treat null
      
      Co-authored-by: default avatarnullobsi <me@nullob.si>
      
      * make truncate Unicode-aware
      
      The strings that truncate returns should now be valid Unicode.
      
      PostgreSQL also counts Unicode Code Points instead of bytes so this
      should be correct.
      
      * move truncate to internal, validate in API
      
      Truncating could also be done in src/services/drive/add-file.ts or
      src/services/drive/upload-from-url.ts but those would also affect
      local images. But local images should result in a hard error if the
      image comment is too long.
      
      * avoid overwriting
      
      Co-authored-by: default avatarnullobsi <me@nullob.si>
    • syuilo's avatar
      🎨 · c5e5a9b8
      syuilo authored
      c5e5a9b8
    • syuilo's avatar
      refactor components · 1ac1a968
      syuilo authored
      1ac1a968
  9. Sep 27, 2021
  10. Sep 25, 2021
Loading