remove BoardsUnfurl feature flag (#19283)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ee92bda912
Коммит
5e147dd150
@@ -230,7 +230,7 @@ func (a *App) getEmbedForPost(post *model.Post, firstLink string, isNewPost bool
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := post.GetProps()["boards"]; ok && a.Config().FeatureFlags.BoardsUnfurl {
|
if _, ok := post.GetProps()["boards"]; ok {
|
||||||
return &model.PostEmbed{
|
return &model.PostEmbed{
|
||||||
Type: model.PostEmbedBoards,
|
Type: model.PostEmbedBoards,
|
||||||
Data: post.GetProps()["boards"],
|
Data: post.GetProps()["boards"],
|
||||||
|
|||||||
@@ -47,9 +47,6 @@ type FeatureFlags struct {
|
|||||||
// Determine whether when a user gets created, they'll have noisy notifications e.g. Send desktop notifications for all activity
|
// Determine whether when a user gets created, they'll have noisy notifications e.g. Send desktop notifications for all activity
|
||||||
NewAccountNoisy bool
|
NewAccountNoisy bool
|
||||||
|
|
||||||
// Enable Boards Unfurl Preview
|
|
||||||
BoardsUnfurl bool
|
|
||||||
|
|
||||||
// Enable Calls plugin support in the mobile app
|
// Enable Calls plugin support in the mobile app
|
||||||
CallsMobile bool
|
CallsMobile bool
|
||||||
|
|
||||||
@@ -89,7 +86,6 @@ func (f *FeatureFlags) SetDefaults() {
|
|||||||
f.GlobalHeader = true
|
f.GlobalHeader = true
|
||||||
f.AddChannelButton = "by_team_name"
|
f.AddChannelButton = "by_team_name"
|
||||||
f.NewAccountNoisy = false
|
f.NewAccountNoisy = false
|
||||||
f.BoardsUnfurl = true
|
|
||||||
f.CallsMobile = false
|
f.CallsMobile = false
|
||||||
f.AutoTour = "none"
|
f.AutoTour = "none"
|
||||||
f.BoardsFeatureFlags = ""
|
f.BoardsFeatureFlags = ""
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user