<feed xmlns='http://www.w3.org/2005/Atom'>
<title>misskey/src/misc/hard-limits.ts, branch master</title>
<subtitle>my misskey fork
</subtitle>
<id>http://g.freya.cat/misskey/atom?h=master</id>
<link rel='self' href='http://g.freya.cat/misskey/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/'/>
<updated>2021-11-11T17:02:25Z</updated>
<entry>
<title>refactoring</title>
<updated>2021-11-11T17:02:25Z</updated>
<author>
<name>syuilo</name>
<email>Syuilotan@yahoo.co.jp</email>
</author>
<published>2021-11-11T17:02:25Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=0e4a111f81cceed275d9bec2695f6e401fb654d8'/>
<id>urn:sha1:0e4a111f81cceed275d9bec2695f6e401fb654d8</id>
<content type='text'>
Resolve #7779
</content>
</entry>
<entry>
<title>fix: truncate image descriptions (#7699)</title>
<updated>2021-09-29T16:44:22Z</updated>
<author>
<name>Johann150</name>
<email>johann.galle@protonmail.com</email>
</author>
<published>2021-09-29T16:44:22Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=414f1d11582510f77ea3a927053fe68fa160278b'/>
<id>urn:sha1:414f1d11582510f77ea3a927053fe68fa160278b</id>
<content type='text'>
* 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 &lt;me@nullob.si&gt;

* 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 &lt;me@nullob.si&gt;</content>
</entry>
<entry>
<title>Apply DB limit to the maximum note text length (#5465)</title>
<updated>2019-09-30T16:46:31Z</updated>
<author>
<name>MeiMei</name>
<email>30769358+mei23@users.noreply.github.com</email>
</author>
<published>2019-09-30T16:46:31Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=6ba5968861c4d38f699f8589f99b791cc1470e43'/>
<id>urn:sha1:6ba5968861c4d38f699f8589f99b791cc1470e43</id>
<content type='text'>
</content>
</entry>
</feed>
