mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-11 01:00:07 +09:00
414f1d1158
* 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> |
||
---|---|---|
.. | ||
id | ||
acct.ts | ||
antenna-cache.ts | ||
api-permissions.ts | ||
app-lock.ts | ||
before-shutdown.ts | ||
cache.ts | ||
cafy-id.ts | ||
captcha.ts | ||
check-hit-antenna.ts | ||
check-word-mute.ts | ||
content-disposition.ts | ||
convert-host.ts | ||
count-same-renotes.ts | ||
create-temp.ts | ||
detect-url-mime.ts | ||
download-text-file.ts | ||
download-url.ts | ||
emoji-regex.ts | ||
emojilist.ts | ||
extract-custom-emojis-from-mfm.ts | ||
extract-hashtags.ts | ||
extract-mentions.ts | ||
extract-url-from-mfm.ts | ||
fetch-meta.ts | ||
fetch-proxy-account.ts | ||
fetch.ts | ||
format-time-string.ts | ||
gen-avatar.ts | ||
gen-id.ts | ||
gen-key-pair.ts | ||
get-file-info.ts | ||
get-note-summary.ts | ||
get-reaction-emoji.ts | ||
get-user-name.ts | ||
hard-limits.ts | ||
i18n.ts | ||
identifiable-error.ts | ||
is-blocker-user-related.ts | ||
is-duplicate-key-value-error.ts | ||
is-muted-user-related.ts | ||
is-quote.ts | ||
keypair-store.ts | ||
license.ts | ||
normalize-for-search.ts | ||
nyaize.ts | ||
populate-emojis.ts | ||
reaction-lib.ts | ||
safe-for-sql.ts | ||
schema.ts | ||
secure-rndstr.ts | ||
show-machine-info.ts | ||
simple-schema.ts | ||
truncate.ts | ||
twemoji-base.ts |