summaryrefslogtreecommitdiff
path: root/.github/workflows/docker-develop.yml
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2021-09-29 18:44:22 +0200
committerGitHub <noreply@github.com>2021-09-30 01:44:22 +0900
commit414f1d11582510f77ea3a927053fe68fa160278b (patch)
tree406a8299b6eff7a7c63175d1adce18e4ccb3dfad /.github/workflows/docker-develop.yml
parent:art: (diff)
downloadsharkey-414f1d11582510f77ea3a927053fe68fa160278b.tar.gz
sharkey-414f1d11582510f77ea3a927053fe68fa160278b.tar.bz2
sharkey-414f1d11582510f77ea3a927053fe68fa160278b.zip
fix: truncate image descriptions (#7699)
* move truncate function to separate file to reuse it * truncate image descriptions * show image description limit in UI * correctly treat null Co-authored-by: nullobsi <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: nullobsi <me@nullob.si>
Diffstat (limited to '.github/workflows/docker-develop.yml')
0 files changed, 0 insertions, 0 deletions