Support webapp to render post rapidly for bot without additional call for user/bot. (#10793)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
53d0bfe35e
Коммит
74c7c46a7d
@@ -166,6 +166,10 @@ func (a *App) CreatePost(post *model.Post, channel *model.Channel, triggerWebhoo
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if user.IsBot {
|
||||||
|
post.AddProp("from_bot", "true")
|
||||||
|
}
|
||||||
|
|
||||||
if a.License() != nil && *a.Config().TeamSettings.ExperimentalTownSquareIsReadOnly &&
|
if a.License() != nil && *a.Config().TeamSettings.ExperimentalTownSquareIsReadOnly &&
|
||||||
!post.IsSystemMessage() &&
|
!post.IsSystemMessage() &&
|
||||||
channel.Name == model.DEFAULT_CHANNEL &&
|
channel.Name == model.DEFAULT_CHANNEL &&
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user