Cleanup post embed for WebSocket payload (#27763)
* Cleanup post embed for WebSocket payload * Removing post embeds in create post API * Fixed a nil check: * Removed a now-irrelavent test --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2be8f2f349
Коммит
69a8b3df0f
@@ -508,6 +508,10 @@ func (o *Post) SanitizeProps() {
|
||||
func (o *Post) SanitizeInput() {
|
||||
o.DeleteAt = 0
|
||||
o.RemoteId = NewPointer("")
|
||||
|
||||
if o.Metadata != nil {
|
||||
o.Metadata.Embeds = nil
|
||||
}
|
||||
}
|
||||
|
||||
func (o *Post) ContainsIntegrationsReservedProps() []string {
|
||||
|
||||
Ссылка в новой задаче
Block a user