diff options
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/post.go b/app/post.go index 1d7bf974d..4ce009369 100644 --- a/app/post.go +++ b/app/post.go @@ -958,3 +958,14 @@ func (a *App) ImageProxyRemover() (f func(string) string) { return url } } + +func (a *App) MaxPostSize() int { + maxPostSize := model.POST_MESSAGE_MAX_RUNES_V1 + if result := <-a.Srv.Store.Post().GetMaxPostSize(); result.Err != nil { + l4g.Error(result.Err) + } else { + maxPostSize = result.Data.(int) + } + + return maxPostSize +} |