* limit markdown size
Этот коммит содержится в:
Vishal
2023-05-29 19:02:22 +05:30
коммит произвёл GitHub
родитель 834c8982df
Коммит fa1ba4717b
3 изменённых файлов: 80 добавлений и 30 удалений

Просмотреть файл

@@ -2552,6 +2552,7 @@ func (s *SqlPostStore) determineMaxPostSize() int {
}
// GetMaxPostSize returns the maximum number of runes that may be stored in a post.
// For any changes, accordingly update the markdown maxLen here - markdown/inspect.go.
func (s *SqlPostStore) GetMaxPostSize() int {
s.maxPostSizeOnce.Do(func() {
s.maxPostSizeCached = s.determineMaxPostSize()