Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes." (#7072)

* Revert "PLT-6603: Don't return all posts on invalid query. (#7061)"

This reverts commit 25a2013890.

* Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)"

This reverts commit 8a91235fb3.
Этот коммит содержится в:
Saturnino Abril
2017-08-01 20:16:45 +08:00
коммит произвёл Joram Wilander
родитель b023b89155
Коммит 88f398ffdd
14 изменённых файлов: 66 добавлений и 574 удалений

Просмотреть файл

@@ -250,8 +250,8 @@ func UpdatePost(post *model.Post, safeUpdate bool) (*model.Post, *model.AppError
return nil, err
}
if oldPost.IsSystemMessage() && !oldPost.IsUserActivitySystemMessage() {
err := model.NewAppError("updatePost", "api.post.update_post.system_message.app_error", nil, "id="+post.Id, http.StatusBadRequest)
if oldPost.IsSystemMessage() {
err := model.NewAppError("UpdatePost", "api.post.update_post.system_message.app_error", nil, "id="+post.Id, http.StatusBadRequest)
return nil, err
}