Comment Comment by q3k diff --git a/server/channels/app/limits.go b/server/channels/app/limits.go index b13103898a..a8be8dd908 100644 --- a/server/channels/app/limits.go +++ b/server/channels/app/limits.go @@ -36,17 +36,6 @@ func (a *App) GetServerLimits() (*model.ServerLimits, *model.AppError) { limits.MaxUsersHardLimit = licenseUserLimit + int64(extraUsers) } - // Check if license has post history limits and get the calculated timestamp - if license != nil && license.Limits != nil && license.Limits.PostHistory > 0 { - limits.PostHistoryLimit = license.Limits.PostHistory - // Get the calculated timestamp of the last accessible post - lastAccessibleTime, appErr := a.GetLastAccessiblePostTime() - if appErr != nil { - return nil, appErr - } - limits.LastAccessiblePostTime = lastAccessibleTime - } - activeUserCount, appErr := a.Srv().Store().User().Count(model.UserCountOptions{}) if appErr != nil { return nil, model.NewAppError("GetServerLimits", "app.limits.get_app_limits.user_count.store_error", nil, "", http.StatusInternalServerError).Wrap(appErr) parent q3k 10 months ago