Include deleted channels on get user channels endpoint (#13877)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8f0bedf9c9
Коммит
a43439dd60
@@ -74,6 +74,7 @@ type Params struct {
|
||||
LimitBefore int
|
||||
GroupIDs string
|
||||
IncludeTotalCount bool
|
||||
IncludeDeleted bool
|
||||
}
|
||||
|
||||
func ParamsFromRequest(r *http.Request) *Params {
|
||||
@@ -296,5 +297,9 @@ func ParamsFromRequest(r *http.Request) *Params {
|
||||
params.IncludeTotalCount = val
|
||||
}
|
||||
|
||||
if val, err := strconv.ParseBool(query.Get("include_deleted")); err == nil {
|
||||
params.IncludeDeleted = val
|
||||
}
|
||||
|
||||
return params
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user