коммит произвёл
GitHub
родитель
295228dd88
Коммит
c42839094e
@@ -2834,7 +2834,7 @@ func TestSanitizePostMetadataForUserAndChannel(t *testing.T) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
publicChannel, err := th.App.CreateChannel(th.Context, &model.Channel{
|
publicChannel, err := th.App.CreateChannel(th.Context, &model.Channel{
|
||||||
Name: "private_chanenl",
|
Name: model.NewId(),
|
||||||
Type: model.ChannelTypeOpen,
|
Type: model.ChannelTypeOpen,
|
||||||
TeamId: th.BasicTeam.Id,
|
TeamId: th.BasicTeam.Id,
|
||||||
CreatorId: th.SystemAdminUser.Id,
|
CreatorId: th.SystemAdminUser.Id,
|
||||||
@@ -2956,7 +2956,7 @@ func TestSanitizePostMetadataForUser(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("should remove embeds for not accessible channels", func(t *testing.T) {
|
t.Run("should remove embeds for not accessible channels", func(t *testing.T) {
|
||||||
privateChannel, err := th.App.CreateChannel(th.Context, &model.Channel{
|
privateChannel, err := th.App.CreateChannel(th.Context, &model.Channel{
|
||||||
Name: "private_chanenl",
|
Name: model.NewId(),
|
||||||
Type: model.ChannelTypePrivate,
|
Type: model.ChannelTypePrivate,
|
||||||
TeamId: th.BasicTeam.Id,
|
TeamId: th.BasicTeam.Id,
|
||||||
CreatorId: th.SystemAdminUser.Id,
|
CreatorId: th.SystemAdminUser.Id,
|
||||||
@@ -3010,7 +3010,7 @@ func TestSanitizePostMetadataForUser(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("should remove embeds for archived channels if the config does not allow it", func(t *testing.T) {
|
t.Run("should remove embeds for archived channels if the config does not allow it", func(t *testing.T) {
|
||||||
publicChannel, err := th.App.CreateChannel(th.Context, &model.Channel{
|
publicChannel, err := th.App.CreateChannel(th.Context, &model.Channel{
|
||||||
Name: "private_chanenl",
|
Name: model.NewId(),
|
||||||
Type: model.ChannelTypeOpen,
|
Type: model.ChannelTypeOpen,
|
||||||
TeamId: th.BasicTeam.Id,
|
TeamId: th.BasicTeam.Id,
|
||||||
CreatorId: th.SystemAdminUser.Id,
|
CreatorId: th.SystemAdminUser.Id,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user