Cleans RemoteId when sanitizing post input from the API (#27049)
* Cleans RemoteId when sanitizing post input from the API * Fix require check --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f0601b67e8
Коммит
cd81b199b7
@@ -488,6 +488,12 @@ func (o *Post) SanitizeProps() {
|
||||
}
|
||||
}
|
||||
|
||||
// Remove any input data from the post object that is not user controlled
|
||||
func (o *Post) SanitizeInput() {
|
||||
o.DeleteAt = 0
|
||||
o.RemoteId = NewString("")
|
||||
}
|
||||
|
||||
func (o *Post) ContainsIntegrationsReservedProps() []string {
|
||||
return containsIntegrationsReservedProps(o.GetProps())
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user